bfd/
commit7390c5327e5c35af26a397b713437cd3565becdb
authorH.J. Lu <hjl@lucon.org>
Sun, 14 Jun 2009 22:13:30 +0000 (14 22:13 +0000)
committerH.J. Lu <hjl@lucon.org>
Sun, 14 Jun 2009 22:13:30 +0000 (14 22:13 +0000)
tree26d472459ee2c9004caaabe961448cd551b84a38
parent944eaf34d14a850d572ea611fa2ac668f245b352
bfd/

2009-06-14  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10270
* elf32-i386.c (elf_i386_allocate_dynrelocs): Disallow
dynamic IFUNC pointer in non-shared object.  Use .got.plt
for IFUNC definition in PIE.
(elf_i386_allocate_dynrelocs): Resolve IFUNC definition in
PIE locally.

* elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Disallow
dynamic IFUNC pointer in non-shared object.  Use .got.plt
for IFUNC definition in PIE.
(elf64_x86_64_relocate_section): Resolve IFUNC definition in
PIE locally.

ld/testsuite/

2009-06-14  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10270
* ld-ifunc/ifunc-9-x86.d: New.
* ld-ifunc/ifunc-9-x86.s: Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-ifunc/ifunc-9-x86.d [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-9-x86.s [new file with mode: 0644]