Change the path of the dynamic loader

Mike Frysinger vapier@gentoo.org
Mon Oct 12 15:39:00 GMT 2009


On Monday 12 October 2009 11:30:27 John Taylor wrote:
> Is it possible to configure and build glibc in such a way that you can
> control where to put the dynamic loader (ld-linux)? At the moment it is
> in /lib64, but I'd like to put it in /usr/lib64 for example.

putting it in /usr/lib64 vs /lib64 makes no sense, but anyways ...

glibc doesnt care where the ldso lives, it doesnt invoke it directly.  every 
ELF out there has the path to the ldso hardcoded.  you can run `readelf -l` on 
an ELF to see the path that is hardcoded.  to change that, you have to relink 
everything with new gcc flags (or change your gcc spec).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-help/attachments/20091012/4fb4d218/attachment.sig>


More information about the Libc-help mailing list