old-cross-binutils/ld/testsuite/ld-i386/protected3.s
2015-04-10 19:16:47 +09:30

15 lines
189 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@GOTOFF(%ecx), %eax
ret
.size bar, .-bar