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>
Tue, 26 Nov 2013 15:24:54 +0000 (15:24 +0000)
commitb1ee0cc48909c2116709038e6e1f2ffa7c3bd99c
tree1484096e5f4d20e7d2e6a81c858bfc6fba65d5f5
parent158599681f7c57e4d233a3e14c2e01faeaae55aa
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]
This page took 0.033875 seconds and 4 git commands to generate.