+2021-06-30 YunQiang Su <yunqiang.su@cipunited.com>
+
+ PR mips/28009
+ * bfd/elfxx-mips.c (_bfd_mips_elf_section_from_shdr,
+ _bfd_mips_elf_fake_sections): Mark LTO debug info as
+ SHT_MIPS_DWARF.
+
2021-06-29 Nick Clifton <nickc@redhat.com>
* config.bfd (obsolete configurations): Add netbsdpe.
break;
case SHT_MIPS_DWARF:
if (! startswith (name, ".debug_")
- && ! startswith (name, ".zdebug_"))
+ && ! startswith (name, ".gnu.debuglto_.debug_")
+ && ! startswith (name, ".zdebug_")
+ && ! startswith (name, ".gnu.debuglto_.zdebug_"))
return false;
break;
case SHT_MIPS_SYMBOL_LIB:
hdr->sh_entsize = sizeof (Elf_External_ABIFlags_v0);
}
else if (startswith (name, ".debug_")
- || startswith (name, ".zdebug_"))
+ || startswith (name, ".gnu.debuglto_.debug_")
+ || startswith (name, ".zdebug_")
+ || startswith (name, ".gnu.debuglto_.zdebug_"))
{
hdr->sh_type = SHT_MIPS_DWARF;