This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: [(nowhere)] libc/1808: ld.so on powerpc-redhat-linux-gnu with ld -Ttext ...
- To: geoffk at cygnus dot com (Geoff Keating)
- Subject: Re: [(nowhere)] libc/1808: ld.so on powerpc-redhat-linux-gnu with ld -Ttext ...
- From: Anton Ertl <anton at a0 dot complang dot tuwien dot ac dot at>
- Date: Thu, 6 Jul 2000 10:43:37 +0200 (MET DST)
- Cc: anton at mips dot complang dot tuwien dot ac dot at, aj at suse dot de, libc-alpha at sourceware dot cygnus dot com
- Reply-To: anton at mips dot complang dot tuwien dot ac dot at
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