diff --git a/bfd/elf.c b/bfd/elf.c index 4051f2f9329..84a220f01cc 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -957,7 +957,7 @@ _bfd_elf_make_section_from_shdr (bfd *abfd, break; } - if ((flags & SEC_ALLOC) == 0) + if ((flags & (SEC_ALLOC | SEC_GROUP)) == 0) { /* The debugging sections appear to be recognized only by name, not any sort of flag. Their SEC_ALLOC bits are cleared. */