Don't check undefined symbol for IFUNC reloc
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 15 Jun 2016 17:35:38 +0000 (10:35 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 16 Jun 2016 18:28:29 +0000 (11:28 -0700)
commitbf52d7c72035679e6b3ab601133c56a4388f4dc9
treeae10258fcb4672d6938c782bdf1808d1b7a7d7b5
parentf92339b8f316de65add11aeb9cd8ea72630aa556
Don't check undefined symbol for IFUNC reloc

Since x86 elf_*_check_relocs is called after all symbols have been
resolved, there is no need to check undefined symbols for relocations
against IFUNC symbols.

bfd/

* elf32-i386.c (elf_i386_check_relocs): Don't check undefined
symbols for relocations against IFUNC symbols.
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.

ld/

* testsuite/ld-i386/i386.exp: Run pr19636-2e-nacl.
* testsuite/ld-i386/pr19636-2e.d: Skip for NaCl targets.
Remove .rel.plt section.
* testsuite/ld-i386/pr19636-2e-nacl.d: New file.
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr19636-2e-nacl.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr19636-2e.d
This page took 0.036694 seconds and 4 git commands to generate.