[OE-core] meta-toolchain doesn't compile working binaries

Denys Dmytriyenko denis at denix.org
Tue May 6 21:44:30 UTC 2014


On Tue, May 06, 2014 at 04:25:15PM -0500, Mark Hatle wrote:
> On 5/6/14, 3:56 PM, Khem Raj wrote:
> >On Tue, May 6, 2014 at 1:55 PM, Denys Dmytriyenko <denis at denix.org> wrote:
> >>Do you know that OE toolchain is not relocatable?
> >
> >is that true ?
> >
> 
> It's the load path of the executables, they use the libc-nativesdk,
> so they need a hard path to the correct ld.so to get started.

More specifically, it's PT_INTERP section of the ELF header in every binary 
that hardcodes the full path to our own dynamic linker/loader (i.e. mentioned 
libc-nativesdk). I wish it would support the use of $ORIGIN similar to RPATH 
and RUNPATH for libraries, but I bet there are all kinds of corner cases with 
that... :)

-- 
Denys



More information about the Openembedded-core mailing list