* lib/ld-lib.exp (check_gc_sections_available): Fail more targets.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-discard / extern.d
index 5871cd1afb45d0bc894823b370b8e5648f80a750..bb596d5c6c3a8646e4196b326d7e77315c9c7335 100644 (file)
@@ -1,3 +1,13 @@
 #source: extern.s
-#ld: -T $srcdir/$subdir/discard.ld
-#error: undefined reference to `(data|local symbols in discarded section \.data\.exit)'
+#ld: -T discard.ld
+#error: .*data.* referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o
+#objdump: -p
+#xfail: arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-*
+#xfail: m68hc12-*-* m6812-*-*
+#pass
+# The expected warning used to start with "`data' referenced..." but
+# this has two problems: 1) It does not include the name of the linker
+# command which will be present in the message, eg "../ld-new"
+# 2) Targets which define EXTERN_FORCE_RELOC to 0 in their
+# gas/config/tc-xxx.h file will convert the symbol in the reloc from
+# "data" to the section symbol ".data.exit".
This page took 0.023258 seconds and 4 git commands to generate.