using different ld-linux.so.2
Mike Frysinger
vapier@gentoo.org
Tue Mar 7 16:16:00 GMT 2006
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
More information about the Libc-alpha
mailing list