[Patch, AArch64] Fix relocation bug related to ifunc handling
Yufeng Zhang
Yufeng.Zhang@arm.com
Fri Jun 14 08:00:00 GMT 2013
Hi,
The patch fixes an issue when relocating instructions where
STT_GNU_IFUNC symbols are involved. The back-end specific resolving
function shall be called instead of the generic version, as some
instructions like ADRP have multiple bit-fields to relocate.
OK to commit?
Thanks,
Yufeng
bfd/
* elf64-aarch64.c (elf64_aarch64_final_link_relocate): Call
aarch64_resolve_relocation and bfd_elf_aarch64_put_addend to
handle the relocations of R_AARCH64_JUMP26, R_AARCH64_CALL26,
R_AARCH64_LD64_GOT_LO12_NC, R_AARCH64_ADR_GOT_PAGE and
R_AARCH64_GOT_LD_PREL19.
ld/testsuite/
* ld-aarch64/aarch64-elf.exp: Add 'ifunc-7c'.
* ld-aarch64/ifunc-7c.d: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-ifunc-relocs.patch
Type: text/x-patch
Size: 2440 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20130614/0e3851a1/attachment.bin>
More information about the Binutils
mailing list