ELF prelinker

Jakub Jelinek jakub@redhat.com
Tue Aug 14 12:27:00 GMT 2001


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.

	Jakub



More information about the Libc-alpha mailing list