This is the mail archive of the
mailing list for the glibc project.
Re: ELF prelinker
- To: Stephan Althaus <Stephan dot Althaus at t-online dot de>
- Subject: Re: ELF prelinker
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Tue, 14 Aug 2001 21:30:55 +0200
- Cc: libc-alpha at sources dot redhat dot com
- References: <15Whzo-1hhveqC@fwd06.sul.t-online.com>
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
On Tue, Aug 14, 2001 at 07:29:06PM +0000, Stephan Althaus wrote:
> prelink fails on /lib/libc-2.2.4.so with:
> Prelinking /lib/libc-2.2.4.so
> /usr/local/sbin/prelink: Could not parse line ` /usr/local/lib/ld-linux.so.2
> => /lib/ld-linux.so.2 (0x80000000)'
You should be more specific on exactly what you're trying to do.
What options for prelink you used (--dynamic-linker, --ld-library-path?),
what does /usr/local/lib/ld-linux.so.2 do there (do you use it as
interpreter (in glibc's .interp section?).
It looks like you have not installed glibc you have built, because that
message comes from parsing LD_TRACE_PRELINKING=1 invocation, which starts
with lines like:
/bin/sh => /bin/sh (0x08047000, 0x00000000)
libtermcap.so.2 => /lib/libtermcap.so.2 (0x41344000, 0x00000000)
libdl.so.2 => /lib/libdl.so.2 (0x4118b000, 0x00000000)
libc.so.6 => /lib/i686/libc.so.6 (0x4101e000, 0x00000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x41000000, 0x00000000)
Also note that all files/libraries you want to prelink need to be compiled
with those binutils.
I'd suggest you to look at Red Hat Roswell beta distribution, it has already
patched binutils, glibc, includes latest prelink rpm and the whole
distribution was linked with those binutils.