This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: RFA: MIPS's _gp symbol and the new orphan-placement code
- From: Daniel Jacobowitz <drow at false dot org>
- To: binutils at sources dot redhat dot com
- Cc: Richard Sandiford <rsandifo at redhat dot com>
- Date: Sun, 7 Nov 2004 20:16:36 -0500
- Subject: Re: RFA: MIPS's _gp symbol and the new orphan-placement code
- References: <87hdo2111f.fsf@redhat.com> <20041107224825.GH21740@bubble.modra.org>
On Mon, Nov 08, 2004 at 09:18:25AM +1030, Alan Modra wrote:
> On Sun, Nov 07, 2004 at 09:06:04AM +0000, Richard Sandiford wrote:
> > The new orphan placement code puts this .reginfo section right before
> > .got. This should be fine in theory, but unfortunately, the linker
> > scripts set up _gp using:
> >
> > _gp = ALIGN(16) + 0x7ff0;
> > .got : { *(.got.plt) *(.got) }
>
> Sorry about the breakage. It's quite difficult to decide where an
> orphan section can be inserted. We really need some sort of syntactic
> hint that ties the assignment to the section. One such hint is to
> write:
>
> . = .;
> _gp = ALIGN(16) + 0x7ff0;
> .got : { *(.got.plt) *(.got) }
Or maybe require/support syntactic hints saying where orphan sections
can be inserted?
--
Daniel Jacobowitz