Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-i386/copyreloc-main.S

25 lines
574 B
ArmAsm
Raw Normal View History

2023-03-06 14:48:14 +01:00
.section .text.startup,"ax",@progbits
.p2align 4,,15
.globl main
.type main, @function
main:
.cfi_startproc
call __x86.get_pc_thunk.ax
addl $_GLOBAL_OFFSET_TABLE_, %eax
cmpl $2, a_glob@GOTOFF(%eax)
setne %al
movzbl %al, %eax
ret
.cfi_endproc
.size main, .-main
.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:
.cfi_startproc
movl (%esp), %eax
ret
.cfi_endproc
.section .note.GNU-stack,"",@progbits