aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
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/ldlang.c
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/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 1 insertions, 2 deletions
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;
}