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

23 lines
319 B
ArmAsm

.text
.globl g
.type g, @function
g:
calll .Lfoo
.Lfoo:
popl %eax
.Lbar:
addl $_GLOBAL_OFFSET_TABLE_+(.Lbar-.Lfoo), %eax
movl f@GOT(%eax), %eax
ret
.globl h
.type h, @function
h:
leal zed, %eax
movl zed, %ebx
addl %ebx, %eax
ret
.data
zed:
.long f - .