summaryrefslogtreecommitdiffstats
path: root/binutils-2.21/ld/testsuite/ld-x86-64/protected1.s
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-x86-64/protected1.s')
-rw-r--r--binutils-2.21/ld/testsuite/ld-x86-64/protected1.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-x86-64/protected1.s b/binutils-2.21/ld/testsuite/ld-x86-64/protected1.s
new file mode 100644
index 0000000..31368aa
--- /dev/null
+++ b/binutils-2.21/ld/testsuite/ld-x86-64/protected1.s
@@ -0,0 +1,13 @@
+ .text
+.globl foo
+ .protected foo
+ .type foo, @function
+foo:
+ ret
+ .size foo, .-foo
+.globl bar
+ .type bar, @function
+bar:
+ leaq foo(%rip), %rax
+ ret
+ .size bar, .-bar