binutils/tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/reproducer.S

18 lines
428 B
ArmAsm
Raw Normal View History

.text
.globl bar
.type bar, @function
bar:
call __x86.get_pc_thunk.ax
addl $_GLOBAL_OFFSET_TABLE_, %eax
lea foo@GOT, %ecx
mov (%eax,%ecx,1), %eax
ret
.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