This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: MIPS's _gp symbol and the new orphan-placement code


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


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