aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mmix/pr12815-1.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mmix/pr12815-1.d')
-rw-r--r--ld/testsuite/ld-mmix/pr12815-1.d7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mmix/pr12815-1.d b/ld/testsuite/ld-mmix/pr12815-1.d
new file mode 100644
index 0000000..41680b9
--- /dev/null
+++ b/ld/testsuite/ld-mmix/pr12815-1.d
@@ -0,0 +1,7 @@
+#as: -no-predefined-syms -x
+#ld: -e 0x1000 -m elf64mmix -T $srcdir/$subdir/pr12815-1.ld
+#error: invalid input relocation.*objcopy.*"-mno-base-addresses".*truncated
+
+# Check that we emit a meaningful error message rather than SEGV when
+# someone attempts linking to the "binary" output format with
+# -mbase-addresses in effect.