6d633fd282
2005-04-25 H.J. Lu <hongjiu.lu@intel.com> PR 858 * elflink.c (elf_link_input_bfd): Make non-debugging reference to discarded section an error. ld/testsuite/ 2005-04-25 H.J. Lu <hongjiu.lu@intel.com> * ld-discard/extern.d: Expect error. * ld-discard/start.d: Likewise. * ld-discard/static.d: Likewise.
11 lines
561 B
Makefile
11 lines
561 B
Makefile
#source: extern.s
|
|
#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
|
|
#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".
|