mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
ca8c86efe7
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.
27 lines
669 B
ArmAsm
27 lines
669 B
ArmAsm
.text
|
|
.p2align 4,,15
|
|
.globl get_func1
|
|
.type get_func1, @function
|
|
get_func1:
|
|
call __x86.get_pc_thunk.ax
|
|
addl $_GLOBAL_OFFSET_TABLE_, %eax
|
|
movl func1@GOT(%eax), %eax
|
|
ret
|
|
.size get_func1, .-get_func1
|
|
.p2align 4,,15
|
|
.globl call_func1
|
|
.type call_func1, @function
|
|
call_func1:
|
|
call __x86.get_pc_thunk.ax
|
|
addl $_GLOBAL_OFFSET_TABLE_, %eax
|
|
jmp *func1@GOT(%eax)
|
|
.size call_func1, .-call_func1
|
|
.section .text.__x86.get_pc_thunk.ax,"axG",@progbits,__x86.get_pc_thunk.ax,comdat
|
|
.globl __x86.get_pc_thunk.ax
|
|
.hidden __x86.get_pc_thunk.ax
|
|
.type __x86.get_pc_thunk.ax, @function
|
|
__x86.get_pc_thunk.ax:
|
|
movl (%esp), %eax
|
|
ret
|
|
.section .note.GNU-stack,"",@progbits
|