summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/farcall-group4.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-arm/farcall-group4.s')
-rw-r--r--ld/testsuite/ld-arm/farcall-group4.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/farcall-group4.s b/ld/testsuite/ld-arm/farcall-group4.s
new file mode 100644
index 0000000..95ad035
--- /dev/null
+++ b/ld/testsuite/ld-arm/farcall-group4.s
@@ -0,0 +1,14 @@
+@ Test to ensure that ARM calls exceeding 32Mb generate stubs,
+@ and that a large input section forces stub insertion before its
+@ contribution.
+
+ .text
+myfunc:
+ .space 0x2000000
+ bl bar
+
+ .section .far, "xa"
+ .type bar, %function
+ .global bar
+bar:
+ bx lr