mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
44c4ea11d3
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.
19 lines
295 B
ArmAsm
19 lines
295 B
ArmAsm
.text
|
|
.type foo, %gnu_indirect_function
|
|
.globl foo
|
|
.type foo, @function
|
|
foo:
|
|
ret
|
|
.size foo, .-foo
|
|
.type start,"function"
|
|
.global start
|
|
start:
|
|
.type _start,"function"
|
|
.global _start
|
|
_start:
|
|
.type __start,"function"
|
|
.global __start
|
|
__start:
|
|
.type __start,"function"
|
|
movl foo, %eax
|