This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


> 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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]