This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Add -Ttext-segment ADDR to ELF linker
- From: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: John David Anglin <dave dot anglin at nrc-cnrc dot gc dot ca>, Ian Lance Taylor <iant at google dot com>, binutils at sourceware dot org
- Date: Sun, 10 May 2009 11:20:01 -0400
- Subject: Re: PATCH: Add -Ttext-segment ADDR to ELF linker
- References: <6dc9ffc80901131214n6602a120n3d621f49b8facdfc@mail.gmail.com> <20090510144621.GA10785@hiauly1.hia.nrc.ca> <6dc9ffc80905100754w31b901dai11aac06ec1902e78@mail.gmail.com>
- Reply-to: John David Anglin <dave dot anglin at nrc-cnrc dot gc dot ca>
On Sun, 10 May 2009, H.J. Lu wrote:
> On Sun, May 10, 2009 at 7:46 AM, John David Anglin
> <dave@hiauly1.hia.nrc.ca> wrote:
> > On Tue, 13 Jan 2009, H.J. Lu wrote:
> >
> >> I don't think we should take this risk to potentially break existing
> >> applications. ?Here is a patch to add a new switch -Ttext-segment.
> >> I can reuse -Ttext and update linker tests if it is preferred.
> >
> > This change breaks glibc builds on parisc. ?The glibc build attempts
> > to modify the default linker script with a sed script to provide the
> > symbol _begin used by the dynamic loader.
> >
>
> It was fixed by
>
> http://sourceware.org/ml/libc-alpha/2009-01/msg00036.html
>
> If you have problems on parisc, it must be parisc specific.
The problem is old versions of glibc can't be built. Also, the fix
probably doesn't work if the -T option is used to specify the start
of the text segment.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)