aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mmix/pr12815-2.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mmix/pr12815-2.d')
-rw-r--r--ld/testsuite/ld-mmix/pr12815-2.d7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mmix/pr12815-2.d b/ld/testsuite/ld-mmix/pr12815-2.d
new file mode 100644
index 0000000..47966a3
--- /dev/null
+++ b/ld/testsuite/ld-mmix/pr12815-2.d
@@ -0,0 +1,7 @@
+#as: -no-predefined-syms -x
+#ld: -e 0x1000 --defsym bar=0x100000000 -m elf64mmix -T $srcdir/$subdir/pr12815-1.ld
+#error: invalid input relocation.*objcopy.*"-no-expand".*truncated
+
+# Check that we emit a meaningful error message rather than SEGV when
+# someone attempts linking to the "binary" output format with
+# expanding PUSHJ insns, expecting relaxation to work.