* elf32-i370.c (i370_elf_fake_sections): Don't set SHF_EXCLUDE on
authorAlan Modra <amodra@gmail.com>
Mon, 24 Oct 2005 11:18:03 +0000 (11:18 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 24 Oct 2005 11:18:03 +0000 (11:18 +0000)
group sections.

bfd/ChangeLog
bfd/elf32-i370.c

index 98f7402bb12df8bf8a35ed59a30989bded0dd1e5..231e6daf8ab8ab42e62fb383406a977addbcc36f 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-24  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-i370.c (i370_elf_fake_sections): Don't set SHF_EXCLUDE on
+       group sections.
+
 2005-10-24  Jan Beulich  <jbeulich@novell.com>
 
        * cpu-ia64-opc.c (elf64_ia64_operands): Move memory operand out of
index c9c4433780546326480e259e1bd0d6dafe28fce0..d9e6fbf52806df2a726923050a4a6c2bf9477e0c 100644 (file)
@@ -379,7 +379,7 @@ i370_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)