2001-11-10 01:17:58 +00:00
|
|
|
#source: extern.s
|
2002-10-12 15:40:13 +00:00
|
|
|
#ld: -T discard.ld
|
2005-04-25 14:59:09 +00:00
|
|
|
#error: .*data.* referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o
|
2005-02-07 03:09:10 +00:00
|
|
|
#objdump: -p
|
|
|
|
#pass
|
2005-03-01 17:07:53 +00:00
|
|
|
# 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".
|