This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: glibc 2.16.0


Hi,

* çãç <ShiroiKuma@ShiroiKuma.org> [2012-12-17 20:25]:
> 
> But how can this be?

The binaries have /lib/ld-linux.so.2 as interpreter (run "readelf -l"
and see the INTERP header) set. So if the kernel executes the binary,
they're executed with /lib/ld-linux.so.2 and that's from android libc
(which is not glibc).

You can change the interpreter when compiling with

    gcc ... -Wl,-dynamic-linker,/my/lib/ld-linux.so.2 ...

or patch it afterwards with patchelf from http://nixos.org/patchelf.html.

I think that would be the (first?) step to use your own libc, but I'm
far away from being an expert in that area...


Regards,
Bernhard

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]