diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-04-25 14:59:09 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-04-25 14:59:09 +0000 |
commit | 6d633fd2827c7c46c05c45b75781ca8ab6a9afce (patch) | |
tree | 1a0e86abc4dc46bb84fb6b723e1ba33c4307403d /ld | |
parent | bee59fd28b6134cf8d4e8435b1dedc638ee9f6ea (diff) | |
download | gdb-6d633fd2827c7c46c05c45b75781ca8ab6a9afce.zip gdb-6d633fd2827c7c46c05c45b75781ca8ab6a9afce.tar.gz gdb-6d633fd2827c7c46c05c45b75781ca8ab6a9afce.tar.bz2 |
bfd/
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-discard/extern.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-discard/start.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-discard/static.d | 2 |
4 files changed, 9 insertions, 3 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index f1fbcb9..355d97f 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +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. + 2005-04-19 Alan Modra <amodra@bigpond.net.au> * ld-powerpc/reloc.d: Update to suit removal of non-alloc relocs. diff --git a/ld/testsuite/ld-discard/extern.d b/ld/testsuite/ld-discard/extern.d index e5143cb..9033792 100644 --- a/ld/testsuite/ld-discard/extern.d +++ b/ld/testsuite/ld-discard/extern.d @@ -1,6 +1,6 @@ #source: extern.s #ld: -T discard.ld -#warning: .*data.* referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o +#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 diff --git a/ld/testsuite/ld-discard/start.d b/ld/testsuite/ld-discard/start.d index 2ad6e9f..5c685e8 100644 --- a/ld/testsuite/ld-discard/start.d +++ b/ld/testsuite/ld-discard/start.d @@ -1,6 +1,6 @@ #source: start.s #source: exit.s #ld: -T discard.ld -#warning: `data' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump1.o +#error: `data' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump1.o #objdump: -p #pass diff --git a/ld/testsuite/ld-discard/static.d b/ld/testsuite/ld-discard/static.d index eefeeea..3b5255b 100644 --- a/ld/testsuite/ld-discard/static.d +++ b/ld/testsuite/ld-discard/static.d @@ -1,5 +1,5 @@ #source: static.s #ld: -T discard.ld -#warning: `(\.data\.exit|data)' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o +#error: `(\.data\.exit|data)' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o #objdump: -p #pass |