This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: link and run against another libc
- From: Mike Hearn <mike at navi dot cx>
- To: libc-alpha at sources dot redhat dot com
- Date: Fri, 14 Jan 2005 19:00:03 +0000
- Subject: Re: link and run against another libc
- References: <1105716977.20548.324.camel@chronos.inria.fr>
On Fri, 14 Jan 2005 16:36:17 +0100, Mathieu Lacage wrote:
> I tried to find a way to set the elf interpreter to use for that binary
> to use the one I just built (to avoid the dependency on /lib/ld-
> linux.so) but I found no way to do this except by writing my own link
> file and I don't feel ready to do that yet.
You can run the linker directly like this:
/tmp/path/to/my/ld-linux.so.2 /path/to/my/binary
which will override the PT_INTERP header.
thanks -mike