From 9ad85d9b015ac8708c3d37dc03f0209dc6494d0c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 4 Jun 2002 01:07:29 +0000 Subject: * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix. --- ld/ldlang.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ld/ldlang.c') diff --git a/ld/ldlang.c b/ld/ldlang.c index c3761ba..6346a74 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -985,7 +985,7 @@ section_already_linked (abfd, sec, data) of having link once sections in the first place. Also, not merging link once sections in a relocatable link - causes trouble for MIPS ELF, which relies in link once semantics + causes trouble for MIPS ELF, which relies on link once semantics to handle the .reginfo section correctly. */ name = bfd_get_section_name (abfd, sec); @@ -1039,6 +1039,9 @@ section_already_linked (abfd, sec, data) section. */ sec->output_section = bfd_abs_section_ptr; + if (flags & SEC_GROUP) + bfd_discard_group (abfd, sec); + return; } } -- cgit v1.1