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]

Re: using different ld-linux.so.2


On Tuesday 07 March 2006 10:10, Guillaume Duranceau wrote:
> 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 ?

not without rebuilding each one ... just link your programs with:
-Wl,-dynamic-linker,/newglibc/lib/ld-linux.so.2 -Wl,-rpath,/newglibc/lib
-mike


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