This is the mail archive of the binutils@sourceware.org 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: bug: GOLD handling of Sparc PLTREL


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


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