[(nowhere)] libc/1808: ld.so on powerpc-redhat-linux-gnu with ld -Ttext ...
Geoff Keating
geoffk@cygnus.com
Thu Jul 6 12:03:00 GMT 2000
> From: Anton Ertl <anton@a0.complang.tuwien.ac.at>
> Date: Thu, 6 Jul 2000 10:43:37 +0200 (MET DST)
> Cc: anton@mips.complang.tuwien.ac.at, aj@suse.de,
> libc-alpha@sourceware.cygnus.com
> Reply-To: anton@mips.complang.tuwien.ac.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?
Sure.
> 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).
This is actually the general solution. Just build your own script and
ship it with your application, and use the -T flag to ld.
Do you happen to know if similar behaviour happens on other platforms?
--
- Geoffrey Keating <geoffk@cygnus.com>
More information about the Libc-alpha
mailing list