aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/farcall-bl-none-function.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-aarch64/farcall-bl-none-function.s')
-rw-r--r--ld/testsuite/ld-aarch64/farcall-bl-none-function.s16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/farcall-bl-none-function.s b/ld/testsuite/ld-aarch64/farcall-bl-none-function.s
new file mode 100644
index 0000000..89aa85a
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/farcall-bl-none-function.s
@@ -0,0 +1,16 @@
+ .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"
+bar:
+ ret