Retro68/binutils/ld/testsuite/ld-discard/extern.d

13 lines
584 B
D
Raw Normal View History

2012-03-26 19:18:29 +00:00
#source: extern.s
#ld: -T discard.ld
2017-04-10 11:32:00 +00:00
#error: .*data.* referenced in section `\.text' of tmpdir/extern.o: defined in discarded section `\.data\.exit' of tmpdir/extern.o
2012-03-26 19:18:29 +00:00
#objdump: -p
#xfail: [is_generic]
2012-03-26 19:18:29 +00:00
#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".