summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/farcall-bl.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-aarch64/farcall-bl.s')
-rw-r--r--ld/testsuite/ld-aarch64/farcall-bl.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/farcall-bl.s b/ld/testsuite/ld-aarch64/farcall-bl.s
new file mode 100644
index 0000000..432b120
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/farcall-bl.s
@@ -0,0 +1,17 @@
+ .global _start
+ .global bar
+
+# We will place the section .text at 0x1000.
+
+ .text
+
+_start:
+ bl bar
+ ret
+
+# We will place the section .foo at 0x8001000.
+
+ .section .foo, "xa"
+ .type bar, @function
+bar:
+ ret