RFA: MIPS's _gp symbol and the new orphan-placement code
Alan Modra
amodra@bigpond.net.au
Mon Nov 8 02:54:00 GMT 2004
On Sun, Nov 07, 2004 at 08:16:36PM -0500, Daniel Jacobowitz wrote:
> On Mon, Nov 08, 2004 at 09:18:25AM +1030, Alan Modra wrote:
> > 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?
Yes, extra braces would work, or even taking note of blank lines. The
latter has the advantage that many existing scripts would "just work".
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list