]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfd/elfnn-aarch64.c: Fix miscalculation of GOTPLT offset for ifunc syms.
authorWill Newton <will.newton@linaro.org>
Mon, 25 Nov 2013 11:07:07 +0000 (11:07 +0000)
committerWill Newton <will.newton@linaro.org>
Wed, 11 Dec 2013 21:15:15 +0000 (21:15 +0000)
commit67428c4aa56d4183d0f531e0d752040745a94423
treefc32c0744fdd205639feae5848eb11a47be1a693
parent5e705ddb0649980f0ea8c896d91c406c11817472
bfd/elfnn-aarch64.c: Fix miscalculation of GOTPLT offset for ifunc syms.

The .got.plt header size was not being correctly taken into account
when calculating the offset for relocations against ifunc symbols.

bfd/ChangeLog:

2013-11-26  Will Newton  <will.newton@linaro.org>

* elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Ensure
PLT_INDEX is calculated using correct header size.

ld/testsuite/ChangeLog:

2013-11-26  Will Newton  <will.newton@linaro.org>

* ld-aarch64/aarch64-elf.exp: Add ifunc-21 test.
* ld-aarch64/ifunc-21.d: New file.
* ld-aarch64/ifunc-21.s: Likewise.
bfd/ChangeLog
bfd/elfnn-aarch64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/ifunc-21.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/ifunc-21.s [new file with mode: 0644]