This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
using different ld-linux.so.2
- From: Guillaume Duranceau <guillaume dot duranceau at bull dot net>
- To: libc-alpha at sourceware dot org
- Date: Tue, 7 Mar 2006 16:10:16 +0100
- Subject: using different ld-linux.so.2
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