diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-06-13 11:06:10 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-06-13 11:11:23 -0700 |
commit | 712ec27916b5604d29d928dec060fd1ba0fd9edb (patch) | |
tree | 221a14aa497e282aad40ccacf3bd8abbe30a9de8 /ld/testsuite/ld-i386/pr20244-2b.d | |
parent | ca8c86efe7765262e25ebb08004012ba2fdadf52 (diff) | |
download | gdb-712ec27916b5604d29d928dec060fd1ba0fd9edb.zip gdb-712ec27916b5604d29d928dec060fd1ba0fd9edb.tar.gz gdb-712ec27916b5604d29d928dec060fd1ba0fd9edb.tar.bz2 |
Add the GOT base for GOT32 relocs against IFUNC
Add the GOT base for R_386_GOT32/R_386_GOT32X relocations against IFUNC
symbols if there is no base register and disallow them for PIC.
bfd/
PR ld/20244
* elf32-i386.c (elf_i386_relocate_section): Add the .got.plt
section address for R_386_GOT32/R_386_GOT32X relocations against
IFUNC symbols if there is no base register and return error for
PIC.
ld/
PR ld/20244
* testsuite/ld-i386/i386.exp: Run pr20244-2a, pr20244-2b,
pr20244-2c and pr20244-2d.
* testsuite/ld-i386/no-plt.exp: Run pr20244-3a and pr20244-3b.
* testsuite/ld-i386/pr20244-2.s: New file.
* testsuite/ld-i386/pr20244-2a.d: Likewise.
* testsuite/ld-i386/pr20244-2b.d: Likewise.
* testsuite/ld-i386/pr20244-2c.d: Likewise.
* testsuite/ld-i386/pr20244-2d.d: Likewise.
* testsuite/ld-i386/pr20244-3a.c: Likewise.
* testsuite/ld-i386/pr20244-3b.S: Likewise.
* testsuite/ld-i386/pr20244-3c.S: Likewise.
* testsuite/ld-i386/pr20244-3d.S: Likewise.
Diffstat (limited to 'ld/testsuite/ld-i386/pr20244-2b.d')
-rw-r--r-- | ld/testsuite/ld-i386/pr20244-2b.d | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/pr20244-2b.d b/ld/testsuite/ld-i386/pr20244-2b.d new file mode 100644 index 0000000..fc0fa17 --- /dev/null +++ b/ld/testsuite/ld-i386/pr20244-2b.d @@ -0,0 +1,11 @@ +#source: pr20244-2.s +#as: --32 +#ld: -m elf_i386 +#objdump: -s -j .got.plt +#notarget: i?86-*-nacl* x86_64-*-nacl* + +.*: +file format .* + +Contents of section .got.plt: + 80490d4 00000000 00000000 00000000 b0800408 ................ + 80490e4 b1800408 .... |