#source: start.s
#source: exit.s
-#ld: -T $srcdir/$subdir/discard.ld
-#error: undefined reference to `data'
+#ld: -T discard.ld
+#error: `data' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump1.o
+#objdump: -p
+#pass