Skip IFUNC relocations in debug sections
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Aug 2015 19:58:52 +0000 (12:58 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Aug 2015 19:59:11 +0000 (12:59 -0700)
commit97dc35c88dd470465a99edeb0b491012a368f2bf
treedbbd0ec476974879e80a24140beed3c941f315a8
parent922c5db5e733526f12e2fbfeb72c7f1f90089d53
Skip IFUNC relocations in debug sections

Skip IFUNC relocations in debug sections ignored by ld.so.

bfd/

PR ld/18808
* elf32-i386.c (elf_i386_relocate_section): Skip IFUNC
relocations in debug sections.
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.

ld/testsuite/

PR ld/18808
* ld-ifunc/ifunc.exp: Add a test for PR ld/18808.
* ld-ifunc/pr18808.out: New file.
* ld-ifunc/pr18808a.c: Likewise.
* ld-ifunc/pr18808b.c: Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-ifunc/ifunc.exp
ld/testsuite/ld-ifunc/pr18808.out [new file with mode: 0644]
ld/testsuite/ld-ifunc/pr18808a.c [new file with mode: 0644]
ld/testsuite/ld-ifunc/pr18808b.c [new file with mode: 0644]
ld/testsuite/lib/ld-lib.exp