bfd/
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 14 Jun 2009 22:13:30 +0000 (22:13 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 14 Jun 2009 22:13:30 +0000 (22:13 +0000)
commit44c4ea11d335f8d5691e9ea5c38c3187ab568467
tree734174e15f439d07e818c3c3b01f2da4919aae65
parentf6475b4872707a92be2c7c28f83d55d891a93ed2
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]