diff options
author | Alan Modra <amodra@gmail.com> | 2002-06-04 01:07:29 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-06-04 01:07:29 +0000 |
commit | 9ad85d9b015ac8708c3d37dc03f0209dc6494d0c (patch) | |
tree | d69f976ef31ac14e5365b1a755168dd4fb846bed /ld | |
parent | d2dab5486b8852f11d930acf05cc63e9e3b057ca (diff) | |
download | binutils-9ad85d9b015ac8708c3d37dc03f0209dc6494d0c.tar.gz binutils-9ad85d9b015ac8708c3d37dc03f0209dc6494d0c.tar.bz2 binutils-9ad85d9b015ac8708c3d37dc03f0209dc6494d0c.zip |
* ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/ldlang.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index fb0e26e85e3..a1a56783608 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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> * scripttempl/avr.sc: Changes to support current GCC and avr-libc, diff --git a/ld/ldlang.c b/ld/ldlang.c index c3761ba1686..6346a747b13 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; } } |