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

16 lines
205 B
ArmAsm

.protected foo
.globl foo
.data
.align 4
.type foo, @object
.size foo, 4
foo:
.long 1
.text
.globl bar
.type bar, @function
bar:
movl foo@GOT(%ecx), %eax
movl (%eax), %eax
ret
.size bar, .-bar