summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/protected5.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/protected5.s')
-rw-r--r--ld/testsuite/ld-x86-64/protected5.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/protected5.s b/ld/testsuite/ld-x86-64/protected5.s
new file mode 100644
index 0000000..8e14138
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/protected5.s
@@ -0,0 +1,12 @@
+ .text
+ .protected foo
+ .globl foo
+ .type foo, @function
+foo:
+ ret
+ .size foo, .-foo
+ .globl _start
+ .type _start, @function
+_start:
+ movabsq $foo@GOTOFF, %rax
+ .size _start, .-_start