diff options
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r-- | bfd/elfxx-mips.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 5173c0a..b71d08f 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -5701,7 +5701,8 @@ _bfd_mips_elf_section_from_shdr (bfd *abfd, return FALSE; break; case SHT_MIPS_DWARF: - if (! CONST_STRNEQ (name, ".debug_")) + if (! CONST_STRNEQ (name, ".debug_") + && ! CONST_STRNEQ (name, ".zdebug_") return FALSE; break; case SHT_MIPS_SYMBOL_LIB: @@ -5895,7 +5896,8 @@ _bfd_mips_elf_fake_sections (bfd *abfd, Elf_Internal_Shdr *hdr, asection *sec) hdr->sh_entsize = 1; hdr->sh_flags |= SHF_MIPS_NOSTRIP; } - else if (CONST_STRNEQ (name, ".debug_")) + else if (CONST_STRNEQ (name, ".debug_") + || CONST_STRNEQ (name, ".zdebug_")) { hdr->sh_type = SHT_MIPS_DWARF; |