diff options
| author | Alan Modra <amodra@gmail.com> | 2004-07-01 13:48:53 +0000 |
|---|---|---|
| committer | Alan Modra <amodra@gmail.com> | 2004-07-01 13:48:53 +0000 |
| commit | cdd3575c2204443be4e4ad258d61bac6c7f2f337 (patch) | |
| tree | 04077db1ee96496a5118a832f584b9e4a06bf9ad /ld | |
| parent | 0b5d8877912034b2af0c548afbb794e4dcd07fbd (diff) | |
| download | binutils-cdd3575c2204443be4e4ad258d61bac6c7f2f337.tar.gz binutils-cdd3575c2204443be4e4ad258d61bac6c7f2f337.tar.bz2 binutils-cdd3575c2204443be4e4ad258d61bac6c7f2f337.zip | |
bfd/
* elflink.c (elf_section_ignore_discarded_relocs): Revert last
change. Comment.
(elf_section_complain_discarded): New function. Handle
.gcc_except_table too.
(elf_link_input_bfd): Rewrite handling of relocs against symbols
in discarded sections.
* elf-bfd.h (elf_discarded_section): Protect macro arg.
ld/testsuite/
* ld-discard/extern.d: Update.
* ld-discard/start.d: Update.
* ld-discard/static.d: Update.
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 3dacd1c710a..5b84ee08ee7 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2004-07-01 Alan Modra <amodra@bigpond.net.au> + + * ld-discard/extern.d: Update. + * ld-discard/start.d: Update. + * ld-discard/static.d: Update. + 2004-06-30 H.J. Lu <hongjiu.lu@intel.com> PR 233 diff --git a/ld/testsuite/ld-discard/extern.d b/ld/testsuite/ld-discard/extern.d index df4c7d1ceab..3409ad44c7a 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: `data' referenced in section `\.text' from tmpdir/dump0.o: discarded in section `\.data\.exit' from tmpdir/dump0.o +#error: `data' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o diff --git a/ld/testsuite/ld-discard/start.d b/ld/testsuite/ld-discard/start.d index f9885d40f7b..3f91738c526 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: `data' referenced in section `\.text' from tmpdir/dump0.o: discarded in section `\.data\.exit' from tmpdir/dump1.o +#error: `data' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump1.o diff --git a/ld/testsuite/ld-discard/static.d b/ld/testsuite/ld-discard/static.d index 1aa44cdd1e0..98ef02f1b15 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: `local symbol 0' referenced in section `\.text': discarded in section `\.data\.exit' from tmpdir/dump0.o +#error: `\.data\.exit' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o |
