This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: using different ld-linux.so.2
- From: Mike Frysinger <vapier at gentoo dot org>
- To: libc-alpha at sourceware dot org
- Cc: Guillaume Duranceau <guillaume dot duranceau at bull dot net>
- Date: Tue, 7 Mar 2006 11:17:15 -0500
- Subject: Re: using different ld-linux.so.2
- Geoman: IS A RETARD
- References: <200603071610.16911.guillaume.duranceau@bull.net>
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