This is the mail archive of the libc-alpha@sources.redhat.com 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: link and run against another libc


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


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