Check reloc against IFUNC symbol only with dynamic symbols
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 30 Jan 2016 22:11:03 +0000 (14:11 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 31 Jan 2016 00:08:20 +0000 (16:08 -0800)
commitd9e3b590692e62d83c21e39ec6641c4c09e70e4c
tree346f0b0fb8d8b63b09565b53c0bbb19a8ec5986f
parent654ec4010a45077280a8d97f24c153f289eb62ed
Check reloc against IFUNC symbol only with dynamic symbols

There is no need to check relocation IFUNC symbol if there are no
dynamic symbols.

bfd/

PR ld/19539
* elf32-i386.c (elf_i386_reloc_type_class): Check relocation
against STT_GNU_IFUNC symbol only with dynamic symbols.
* elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.

ld/

PR ld/19539
* testsuite/ld-elf/pr19539.d: New file.
* testsuite/ld-elf/pr19539.s: Likewise.
* testsuite/ld-elf/pr19539.t: Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/ChangeLog
ld/testsuite/ld-elf/pr19539.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr19539.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr19539.t [new file with mode: 0644]
This page took 0.027415 seconds and 4 git commands to generate.