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: [PATCH, PPC64] Use unadjusted reloc for stub lookup.


On Wed, Sep 12, 2012 at 11:20:26AM -0700, Doug Kwan (éæå) wrote:
> Hi,
> 
>      This is a patch for the PPC64 backend.  The problem is that OPD
> optimization adjusts addend of a reloc in
> ppc64_elf_relocate_section().  Then the addend is used to generate a
> stub name for lookup.  Since the stub name is changed, a stub cannot
> be located when it should be.  The fix is to save the reloc before
> adjustment and use the original value for stub lookup.
> 
> -Doug
> 
> 
> 2012-09-12  Doug Kwan  <dougkwan@google.com>
> 
> 	* elf64-ppc.c (ppc64_elf_relocate_section): Use pre-adjusted
> 	relocation for stub lookup.

OK, thanks!

-- 
Alan Modra
Australia Development Lab, IBM


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