* elf32-ppc.c (ppc_elf_fake_sections): Don't set SHF_EXCLUDE on
authorAlan Modra <amodra@gmail.com>
Mon, 24 Oct 2005 04:32:50 +0000 (04:32 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 24 Oct 2005 04:32:50 +0000 (04:32 +0000)
group sections.

bfd/ChangeLog
bfd/elf32-ppc.c

index f0cf08bc95fbf5e47cc540e60afcbef58f638d21..06efc1fd43750a150319a0ceebca1ce4d486a85c 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-24  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_fake_sections): Don't set SHF_EXCLUDE on
+       group sections.
+
 2005-10-23  H.J. Lu  <hongjiu.lu@intel.com>
 
        * coff-rs6000.c (rs6000coff_vec): Initialize
index 2134af2c761e037bd03339e9e531c2561636580b..7c072fd5a5c581e92fd7ff750ba045e446d53d54 100644 (file)
@@ -1856,7 +1856,7 @@ ppc_elf_fake_sections (bfd *abfd ATTRIBUTE_UNUSED,
                       Elf_Internal_Shdr *shdr,
                       asection *asect)
 {
-  if ((asect->flags & SEC_EXCLUDE) != 0)
+  if ((asect->flags & (SEC_GROUP | SEC_EXCLUDE)) == SEC_EXCLUDE)
     shdr->sh_flags |= SHF_EXCLUDE;
 
   if ((asect->flags & SEC_SORT_ENTRIES) != 0)