aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-10-12 03:44:51 +0000
committerAlan Modra <amodra@gmail.com>2000-10-12 03:44:51 +0000
commit24376d1b58f62660beb3e5f9c2a7c135513ce27d (patch)
tree684628a3f6e7b7ffe80bfb966007ad2179aeee00 /ld
parent74bcd5294fa6894905a705d18c229cbe5ea42b59 (diff)
downloadgdb-24376d1b58f62660beb3e5f9c2a7c135513ce27d.zip
gdb-24376d1b58f62660beb3e5f9c2a7c135513ce27d.tar.gz
gdb-24376d1b58f62660beb3e5f9c2a7c135513ce27d.tar.bz2
Another try at correcting relocations against discarded
link-once section symbols.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldlang.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 0300d65..14fe197 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-12 Alan Modra <alan@linuxcare.com.au>
+
+ * ldlang.c (section_already_linked): Set kept_section instead of
+ sec->comdat->sec.
+
2000-10-10 Kazu Hirata <kazu@hxi.com>
* deffile.h: Fix formatting.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index c57dd6d..d92ebbf 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -995,8 +995,7 @@ section_already_linked (abfd, sec, data)
discarded, we must retain a pointer to the section which
we are really going to use. */
sec->output_section = bfd_abs_section_ptr;
- if (sec->comdat != NULL)
- sec->comdat->sec = l->sec;
+ sec->kept_section = l->sec;
return;
}