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

22 lines
374 B
ArmAsm

.text
.p2align 4
.type my_foo, @function
my_foo:
ret
.size my_foo, .-my_foo
.p2align 4
.type resolve_foo, @function
resolve_foo:
leal my_foo@GOTOFF(%eax), %eax
ret
.size resolve_foo, .-resolve_foo
.globl foo
.hidden foo
.type foo, @gnu_indirect_function
.set foo,resolve_foo
.p2align 4
.globl bar
.type bar, @function
bar:
leal foo@GOTOFF(%eax), %eax
ret