7b5b197e80
bfd/ 2011-09-12 H.J. Lu <hongjiu.lu@intel.com> PR ld/13178 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Use .got.plt if there are no GOT relocations. ld/testsuite/ 2011-09-12 H.J. Lu <hongjiu.lu@intel.com> PR ld/13178 * ld-ifunc/ifunc-13-i386.d: Updated. * ld-ifunc/ifunc-13-x86-64.d: Likewise. * ld-ifunc/ifunc-3a-x86.d: Likewise. * ld-x86-64/pr13082-5a.d: Likewise. * ld-ifunc/ifunc-15-i386.d: New. * ld-ifunc/ifunc-15-i386.s: Likewise. * ld-ifunc/ifunc-15-x86-64.d: Likewise. * ld-ifunc/ifunc-15-x86-64.s: Likewise.
10 lines
179 B
ArmAsm
10 lines
179 B
ArmAsm
.text
|
|
.type foo, @function
|
|
.global
|
|
foo:
|
|
movl ifunc@GOTPCREL(%rip), %eax
|
|
ret
|
|
.type ifunc, @gnu_indirect_function
|
|
.globl ifunc
|
|
ifunc:
|
|
ret
|