[(nowhere)] libc/1808: ld.so on powerpc-redhat-linux-gnu with ld -Ttext ...

Anton Ertl anton@a0.complang.tuwien.ac.at
Thu Jul 6 01:43:00 GMT 2000


Geoff Keating wrote:
> I believe that this is an invalid ELF file.  The PHDR is supposed to
> be loaded.  Certainly, glibc requires that it is.

Ok, so I'll have to do a bug report to the ld/binutils people.  May I
cite your message?

> > > I think the physical segment offset thing is a side-effect of the way
> > > the linker scripts work.  You might try it with current devo first,
> > > which has a completely different script for ppc.
> > 
> > Where do I find that?
> 
> Sorry, I mean current sourceware CVS.  See
> < http://sourceware.cygnus.com >, look for binutils.

I actually found daily snapshots at
ftp://sourceware.cygnus.com/pub/binutils/snapshots/

However, the problem persists with both binutils-2.10 and
binutils-000705.

I could get what I want by patching TEXT_START_ADDR in
ld/emulparams/elf32ppc*.sh and remaking ld and using that (of course
the result still cannot deal with -Ttext <addr>, where addr is below
TEXT_START_ADDR), but that's not a useful general solution (but at
least I can test my latest changes).

- anton


More information about the Libc-alpha mailing list