diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2003-06-03 18:15:05 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2003-06-03 18:15:05 +0000 |
commit | 6f6f27f842f3e82a92d651fb02c5b51b7686dc74 (patch) | |
tree | b04e1eb55f80af1e4211b0cd12bda762a1b13a6a /ld/testsuite | |
parent | a3b6428fe79103e838aea22ef2acd6578178bf25 (diff) | |
download | binutils-6f6f27f842f3e82a92d651fb02c5b51b7686dc74.zip binutils-6f6f27f842f3e82a92d651fb02c5b51b7686dc74.tar.gz binutils-6f6f27f842f3e82a92d651fb02c5b51b7686dc74.tar.bz2 |
bfd/
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* elflink.h (elf_link_input_bfd): Call linker error_handler
for discarded definitions.
include/
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* bfdlink.h (LD_DEFINITION_IN_DISCARDED_SECTION): New.
ld/
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* ldmisc.c: Include "bfdlink.h".
(error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
and -LD_DEFINITION_IN_DISCARDED_SECTION.
* Makefile.am: Rebuild dependency.
* Makefile.in: Regenerated.
ld/testsuite/
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* ld-discard/extern.d: Updated.
* ld-discard/start.d: Likewise.
* ld-discard/static.d: Likewise.
Diffstat (limited to 'ld/testsuite')
-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 8cdb4c4..cd38c94d 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2003-06-03 H.J. Lu <hongjiu.lu@intel.com> + * ld-discard/extern.d: Updated. + * ld-discard/start.d: Likewise. + * ld-discard/static.d: Likewise. + +2003-06-03 H.J. Lu <hongjiu.lu@intel.com> + * ld-elfcomm/elfcomm.exp: Mark tests untested if compiler is not available. diff --git a/ld/testsuite/ld-discard/extern.d b/ld/testsuite/ld-discard/extern.d index 76d4263..10fa0f7 100644 --- a/ld/testsuite/ld-discard/extern.d +++ b/ld/testsuite/ld-discard/extern.d @@ -1,3 +1,3 @@ #source: extern.s #ld: -T discard.ld -#error: undefined reference to `(data|local symbols in discarded section \.data\.exit)' +#error: data: discarded in section `\.data\.exit' from tmpdir/dump0.o diff --git a/ld/testsuite/ld-discard/start.d b/ld/testsuite/ld-discard/start.d index feef5ea..b8f46ae 100644 --- a/ld/testsuite/ld-discard/start.d +++ b/ld/testsuite/ld-discard/start.d @@ -1,4 +1,4 @@ #source: start.s #source: exit.s #ld: -T discard.ld -#error: undefined reference to `data' +#error: data: discarded in section `\.data\.exit' from tmpdir/dump1.o diff --git a/ld/testsuite/ld-discard/static.d b/ld/testsuite/ld-discard/static.d index 2253f1a..78b89b0 100644 --- a/ld/testsuite/ld-discard/static.d +++ b/ld/testsuite/ld-discard/static.d @@ -1,3 +1,3 @@ #source: static.s #ld: -T discard.ld -#error: undefined reference to `local symbols in discarded section \.data\.exit' +#error: local symbol 0: discarded in section `\.data\.exit' from tmpdir/dump0.o |