* ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.

This commit is contained in:
Alan Modra 2002-06-04 01:07:29 +00:00
parent d2dab5486b
commit 9ad85d9b01
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-06-04 Alan Modra <amodra@bigpond.net.au>
* ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl> 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
* scripttempl/avr.sc: Changes to support current GCC and avr-libc, * scripttempl/avr.sc: Changes to support current GCC and avr-libc,

View File

@ -985,7 +985,7 @@ section_already_linked (abfd, sec, data)
of having link once sections in the first place. of having link once sections in the first place.
Also, not merging link once sections in a relocatable link 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. */ to handle the .reginfo section correctly. */
name = bfd_get_section_name (abfd, sec); name = bfd_get_section_name (abfd, sec);
@ -1039,6 +1039,9 @@ section_already_linked (abfd, sec, data)
section. */ section. */
sec->output_section = bfd_abs_section_ptr; sec->output_section = bfd_abs_section_ptr;
if (flags & SEC_GROUP)
bfd_discard_group (abfd, sec);
return; return;
} }
} }