Browse Source
2004-06-30 H.J. Lu <hongjiu.lu@intel.com> PR 233 * elflink.c (elf_link_input_bfd): Issue an error for non-debug local references to discarded sections and report their locations. ld/testsuite/ 2004-06-30 H.J. Lu <hongjiu.lu@intel.com> PR 233 * ld-discard/extern.d: Updated. * ld-discard/start.d: Likewise. * ld-discard/static.d: Likewise.jimb-rda-nptl-branch
6 changed files with 36 additions and 18 deletions
@ -1,3 +1,3 @@ |
|||
#source: extern.s |
|||
#ld: -T discard.ld |
|||
#error: data: discarded in section `\.data\.exit' from tmpdir/dump0.o |
|||
#error: `data' referenced in section `\.text' from tmpdir/dump0.o: discarded in section `\.data\.exit' from tmpdir/dump0.o |
|||
|
|||
@ -1,4 +1,4 @@ |
|||
#source: start.s |
|||
#source: exit.s |
|||
#ld: -T discard.ld |
|||
#error: data: discarded in section `\.data\.exit' from tmpdir/dump1.o |
|||
#error: `data' referenced in section `\.text' from tmpdir/dump0.o: discarded in section `\.data\.exit' from tmpdir/dump1.o |
|||
|
|||
@ -1,3 +1,3 @@ |
|||
#source: static.s |
|||
#ld: -T discard.ld |
|||
#error: local symbol 0: discarded in section `\.data\.exit' from tmpdir/dump0.o |
|||
#error: `local symbol 0' referenced in section `\.text': discarded in section `\.data\.exit' from tmpdir/dump0.o |
|||
|
|||
Loading…
Reference in new issue