summaryrefslogtreecommitdiffstats
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-09-29 12:07:01 +0000
committerAlan Modra <amodra@gmail.com>2001-09-29 12:07:01 +0000
commit862517b6506a76ce9dc0e06b8f1d98577371e3b4 (patch)
treecb956a05e4995c05b5dec75e0eb63df3d1510f37 /ld
parent65f38f15bf0d85cf1b7d142f76278a668652b4b7 (diff)
downloadppe42-binutils-862517b6506a76ce9dc0e06b8f1d98577371e3b4.tar.gz
ppe42-binutils-862517b6506a76ce9dc0e06b8f1d98577371e3b4.zip
* 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 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ldlang.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 118670546d..de5b83dedb 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2001-09-29 Alan Modra <amodra@bigpond.net.au>
+
+ * ldlang.c (section_already_linked): Remove assignment to kept_section.
+
2001-09-26 Alan Modra <amodra@bigpond.net.au>
* ldmisc.c (USE_STDARG): Remove.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index db420e8e02..1b634684ee 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -1013,11 +1013,8 @@ section_already_linked (abfd, sec, data)
/* Set the output_section field so that lang_add_section
does not create a lang_input_section structure for this
- section. Since there might be a symbol in the section
- being discarded, we must retain a pointer to the section
- which we are really going to use. */
+ section. */
sec->output_section = bfd_abs_section_ptr;
- sec->kept_section = l->sec;
return;
}
OpenPOWER on IntegriCloud