2001-11-10 09:17:58 +08:00
|
|
|
#source: extern.s
|
2002-10-12 23:40:13 +08:00
|
|
|
#ld: -T discard.ld
|
2016-09-20 22:25:55 +08:00
|
|
|
#error: .*data.* referenced in section `\.text' of tmpdir/extern.o: defined in discarded section `\.data\.exit' of tmpdir/extern.o
|
2005-02-07 11:09:10 +08:00
|
|
|
#objdump: -p
|
2016-04-05 19:46:44 +08:00
|
|
|
#xfail: d30v-*-* dlx-*-* i960-*-* pj*-*-*
|
2010-09-18 10:30:41 +08:00
|
|
|
#xfail: m68hc12-*-* m6812-*-*
|
2005-02-07 11:09:10 +08:00
|
|
|
#pass
|
2005-03-02 01:07:53 +08: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".
|