bug: GOLD handling of Sparc PLTREL

Ian Lance Taylor iant@google.com
Tue Feb 9 18:01:00 GMT 2010


David Miller <davem@davemloft.net> writes:

> From: Ian Lance Taylor <iant@google.com>
> Date: Tue, 09 Feb 2010 07:04:13 -0800
>
>> Another approach would be to in fact put the PLT into the .rela.dyn
>> output section.  That could be done by just changing the call to
>> layout->add_output_section_data to use .rela.dyn in both SHT_RELA
>> calls in sparc.cc.
>
> So I tried this, and it doesn't work, even if I force the .rela.dyn to
> get created before the PLT relocation section.
>
> The dynamic linker doesn't process the PLT relocations properly.

You may need to change Layout::add_target_dynamic_tags to
dyn_rel->output_section().

Ian



More information about the Binutils mailing list