Fix powerpc ELF section flags
Alan Modra
amodra@bigpond.net.au
Mon Oct 24 04:32:00 GMT 2005
Fixes a bug exposed by HJ's new ELF group objcopy test.
* elf32-ppc.c (ppc_elf_fake_sections): Don't set SHF_EXCLUDE on
group sections.
Index: bfd/elf32-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-ppc.c,v
retrieving revision 1.181
diff -u -p -r1.181 elf32-ppc.c
--- bfd/elf32-ppc.c 6 Oct 2005 19:21:14 -0000 1.181
+++ bfd/elf32-ppc.c 24 Oct 2005 04:30:25 -0000
@@ -1856,7 +1856,7 @@ ppc_elf_fake_sections (bfd *abfd ATTRIBU
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)
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list