summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mmix/sec-11.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mmix/sec-11.d')
-rw-r--r--ld/testsuite/ld-mmix/sec-11.d7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mmix/sec-11.d b/ld/testsuite/ld-mmix/sec-11.d
new file mode 100644
index 0000000..3a60934
--- /dev/null
+++ b/ld/testsuite/ld-mmix/sec-11.d
@@ -0,0 +1,7 @@
+#source: start.s
+#ld: -m mmo -T$srcdir/$subdir/sec-11.ld
+#error: contents at non-multiple-of-4 address
+
+# A trivial check that we get a graceful error when trying to emit
+# (loadable, addressable) contents at a misaligned address. Note
+# that e.g. debug sections do not have loadable contents.