using different ld-linux.so.2
Guillaume Duranceau
guillaume.duranceau@bull.net
Tue Mar 7 15:08:00 GMT 2006
Hi all,
A common way to use a second glibc without recompiling a program is to do
that:
$ LD_LIBRARY_PATH=/newglibc/lib /newglibc/lib/ld-linux.so.2 my_program
The problem is that my_program can call execve, which loads an other binary
with the original ld-linux.so.2. Is there an easy way to override the system
loader ld-linux.so.2 with /newglibc/lib/ld-linux.so.2 even for my_program
chidren processes ?
The only solution I can see is to change the symbolic link /lib/ld-linux.so.2
to the new loader, but you need to be root to do that, and I'd like to use a
second glibc as a simple user. I also read about overriding execve but this
doesn't seem very "easy".
Thanks a lot.
Guillaume
More information about the Libc-alpha
mailing list