X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-discard%2Fextern.d;h=0d5bca978cbba47506e021179bf8fd9b52a95ed7;hb=e671856cb804c977650aaeb4107948a7b963e9e9;hp=5871cd1afb45d0bc894823b370b8e5648f80a750;hpb=b3de5b86c2331bce5929f982e5b680227eb0fb1a;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/testsuite/ld-discard/extern.d b/ld/testsuite/ld-discard/extern.d index 5871cd1afb..0d5bca978c 100644 --- a/ld/testsuite/ld-discard/extern.d +++ b/ld/testsuite/ld-discard/extern.d @@ -1,3 +1,12 @@ #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/extern.o: defined in discarded section `\.data\.exit' of tmpdir/extern.o +#objdump: -p +#xfail: [is_generic] +#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".