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: Alan Modra <amodra at bigpond dot net dot au>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 8 Nov 2004 09:18:25 +1030
- Subject: Re: RFA: MIPS's _gp symbol and the new orphan-placement code
- References: <87hdo2111f.fsf@redhat.com>
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) }
--
Alan Modra
IBM OzLabs - Linux Technology Centre