diff options
author | Alan Modra <amodra@bigpond.net.au> | 2001-09-29 12:07:01 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2001-09-29 12:07:01 +0000 |
commit | f5de3ab5ceed5fb6e52065c5af82c345b20eeed5 (patch) | |
tree | 2b0ac99418009c5cded4731e1b6d02317bf2eea0 /bfd/cofflink.c | |
parent | 4f7e929c3a0b6fdbdbf9dbcf93a9b0a4f407eef0 (diff) | |
download | binutils-redhat-f5de3ab5ceed5fb6e52065c5af82c345b20eeed5.tar.gz |
* section.c (struct sec): Remove kept_section.
(STD_SECTION): Remove kept_section initialisation.
(bfd_make_section_anyway): Here too.
* ecoff.c (bfd_debug_section): Remove kept_section initialisation.
* cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
* elflink.h (elf_link_input_bfd): Set discarded link-once section
symbols to zero, and remove all code involved with kept_section
and tracking section symbol values.
* bfd-in2.h: Regenerate.
* configure.in: Bump version number.
* configure: Regenerate.
* ldlang.c (section_already_linked): Remove assignment to kept_section.
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r-- | bfd/cofflink.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bfd/cofflink.c b/bfd/cofflink.c index 31ac75612c..594b169bb2 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -1516,15 +1516,13 @@ _bfd_coff_link_input_bfd (finfo, input_bfd) #ifndef COFF_WITH_PE /* Skip section symbols for sections which are not going to be - emitted, or which belong to linkonce sections that are going - to be discarded. */ + emitted. */ if (!skip && isym.n_sclass == C_STAT && isym.n_type == T_NULL && isym.n_numaux > 0) { - if ((*secpp)->output_section == bfd_abs_section_ptr - || (*secpp)->kept_section) + if ((*secpp)->output_section == bfd_abs_section_ptr) skip = true; } #endif |