diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-02-15 10:55:51 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-02-15 11:11:40 -0800 |
commit | a5def14f1ca70e14d9433cb229c9369fa3051598 (patch) | |
tree | fb14176e5377b05dc9ac4bb6119f8095c868a2a4 /ld/testsuite/ld-i386/pr20244-4.s | |
parent | f98d33be3af3a8d788aaef37e8fef167b59c81b2 (diff) | |
download | gdb-a5def14f1ca70e14d9433cb229c9369fa3051598.zip gdb-a5def14f1ca70e14d9433cb229c9369fa3051598.tar.gz gdb-a5def14f1ca70e14d9433cb229c9369fa3051598.tar.bz2 |
Add a test for R_386_GOT32/R_386_GOT32X IFUNC reloc error
bfd/
PR ld/20244
* elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
error against local IFUNC symbol without a base register for
PIC.
ld/
PR ld/20244
* testsuite/ld-i386/i386.exp: Run pr20244-4a, pr20244-4b and
pr20244-4c.
* testsuite/ld-i386/pr20244-4.s: New file.
* testsuite/ld-i386/pr20244-4a.d: Likewise.
* testsuite/ld-i386/pr20244-4b.d: Likewise.
* testsuite/ld-i386/pr20244-4c.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-i386/pr20244-4.s')
-rw-r--r-- | ld/testsuite/ld-i386/pr20244-4.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/pr20244-4.s b/ld/testsuite/ld-i386/pr20244-4.s new file mode 100644 index 0000000..0197256 --- /dev/null +++ b/ld/testsuite/ld-i386/pr20244-4.s @@ -0,0 +1,10 @@ + .text + .globl _start + .type _start, @function +_start: + mov ifunc@GOT, %eax + ret + .type ifunc, @gnu_indirect_function +ifunc: + mov $0xbadbeef, %eax + ret |