Another try at correcting relocations against discarded

link-once section symbols.
This commit is contained in:
Alan Modra
2000-10-12 03:44:51 +00:00
parent 74bcd5294f
commit 24376d1b58
6 changed files with 63 additions and 21 deletions

View File

@@ -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;
}