[PATCH, PPC64] Use unadjusted reloc for stub lookup.

Alan Modra amodra@gmail.com
Wed Sep 12 22:38:00 GMT 2012


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



More information about the Binutils mailing list