link and run against another libc
Mike Hearn
mike@navi.cx
Fri Jan 14 18:54:00 GMT 2005
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
More information about the Libc-alpha
mailing list