Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-i386/copyreloc-main.S
2023-03-06 14:48:14 +01:00

24 lines
574 B
ArmAsm

.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