#source: start.s
#source: exit.s
#ld: -T discard.ld
-#error: `data' referenced in section `\.text' from tmpdir/dump0.o: discarded in section `\.data\.exit' from tmpdir/dump1.o
+#error: `data' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump1.o
+#objdump: -p
+#xfail: arc-*-* d30v-*-* dlx-*-* i960-*-* pj*-*-*
+#xfail: m68hc12-*-* m6812-*-*
+#pass