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]

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


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.

Attachment: patch.txt
Description: Text document


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