| 1 |
#source: extern.s |
| 2 |
#ld: -T discard.ld |
| 3 |
#warning: .*data.* referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o |
| 4 |
#objdump: -p |
| 5 |
#pass |
| 6 |
# The expected warning used to start with "`data' referenced..." but |
| 7 |
# this has two problems: 1) It does not include the name of the linker |
| 8 |
# command which will be present in the message, eg "../ld-new" |
| 9 |
# 2) Targets which define EXTERN_FORCE_RELOC to 0 in their |
| 10 |
# gas/config/tc-xxx.h file will convert the symbol in the reloc from |
| 11 |
# "data" to the section symbol ".data.exit". |