]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-x86-64/protected3.s
Add extern_protected_data and set it for x86
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-x86-64 / protected3.s
CommitLineData
41bed6dd
L
1 .protected foo
2.globl foo
3 .data
4 .align 4
5 .type foo, @object
6 .size foo, 4
7foo:
8 .long 1
9 .text
10.globl bar
11 .type bar, @function
12bar:
f7483970
L
13 movq foo@GOTPCREL(%rip), %rax
14 movl (%rax), %eax
41bed6dd
L
15 ret
16 .size bar, .-bar