This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


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

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


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