Retro68/binutils/ld/testsuite/ld-x86-64/protected3.s

17 lines
210 B
ArmAsm
Raw Normal View History

2012-03-26 19:18:29 +00:00
.protected foo
.globl foo
.data
.align 4
.type foo, @object
.size foo, 4
foo:
.long 1
.text
.globl bar
.type bar, @function
bar:
2017-04-10 11:32:00 +00:00
movq foo@GOTPCREL(%rip), %rax
movl (%rax), %eax
2012-03-26 19:18:29 +00:00
ret
.size bar, .-bar