Add 2 i386 tests to call IFUNC functions via GOT
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 13 Jun 2016 16:27:12 +0000 (09:27 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 13 Jun 2016 16:27:12 +0000 (09:27 -0700)
commitca8c86efe7765262e25ebb08004012ba2fdadf52
tree552a4e2008c34cc8f907c9d0848754befd8748fa
parent97f50151221de0a023a8317559b1992a90f9cb8f
Add 2 i386 tests to call IFUNC functions via GOT

bfd/

* elf32-i386.c (elf_i386_relocate_section): Simplify IFUNC
GOT32 adjustment for static executables.

ld/

2016-06-13  H.J. Lu  <hongjiu.lu@intel.com>

* testsuite/ld-i386/i386.exp: Run ifunc-1a and ifunc-1b.
* testsuite/ld-i386/ifunc-1a.c: New file.
* testsuite/ld-i386/ifunc-1b.S: Likewise.
* testsuite/ld-i386/ifunc-1c.S: Likewise.
* testsuite/ld-i386/ifunc-1d.S: Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
ld/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/ifunc-1a.c [new file with mode: 0644]
ld/testsuite/ld-i386/ifunc-1b.S [new file with mode: 0644]
ld/testsuite/ld-i386/ifunc-1c.S [new file with mode: 0644]
ld/testsuite/ld-i386/ifunc-1d.S [new file with mode: 0644]