aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/jal-local-overflow-1.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mips-elf/jal-local-overflow-1.d')
-rw-r--r--ld/testsuite/ld-mips-elf/jal-local-overflow-1.d8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/jal-local-overflow-1.d b/ld/testsuite/ld-mips-elf/jal-local-overflow-1.d
new file mode 100644
index 0000000..869df0e
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/jal-local-overflow-1.d
@@ -0,0 +1,8 @@
+#name: MIPS JAL to local symbol overflow 1
+#source: jal-local-overflow.s
+#as: -EB -32
+#ld: -EB -Ttext 0x1fffd000 -e 0x1fffd000
+#error: \A[^\n]*: In function `foo':\n
+#error: \(\.text\+0x2000\): relocation truncated to fit: R_MIPS_26 against `.text'\n
+#error: [^\n]*: In function `bar':\n
+#error: \(\.text\+0x4000\): relocation truncated to fit: R_MIPS_26 against `.text'\Z