x86-64: Use .plt.bnd for IFUNC function address
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 10 May 2017 16:28:00 +0000 (09:28 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 10 May 2017 16:28:28 +0000 (09:28 -0700)
commitaab82f4c201a2612c0fb6d5b66d8e4ce2f036f1c
tree62d80226330cf3d900e8e3511dc1f72bf738e22f
parentf78c0b915888ab388f9bdac826d7ac18dc944c28
x86-64: Use .plt.bnd for IFUNC function address

When -z bndplt is used, we must use the .plt.bnd entry for IFUNC function
address.

bfd/

PR ld/21481
* elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Use .plt.bnd
for IFUNC function address.

ld/

PR ld/21481
* testsuite/ld-x86-64/pr21481a.c: New file.
* testsuite/ld-x86-64/pr21481b.S: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests.
bfd/ChangeLog
bfd/elf64-x86-64.c
ld/ChangeLog
ld/testsuite/ld-x86-64/pr21481a.c [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr21481b.S [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp
This page took 0.025281 seconds and 4 git commands to generate.