diff options
author | YunQiang Su <yunqiang.su@cipunited.com> | 2021-06-30 17:16:22 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-06-30 17:16:22 +0100 |
commit | 9a39f7389d8971dc754e45a73128616a5346008c (patch) | |
tree | 2197aec0e2e5c1765b9eff7e142d22c1ee3f03f6 /bfd | |
parent | c63fc3680abb57eddb7c0cefbf11c01736286890 (diff) | |
download | gdb-9a39f7389d8971dc754e45a73128616a5346008c.zip gdb-9a39f7389d8971dc754e45a73128616a5346008c.tar.gz gdb-9a39f7389d8971dc754e45a73128616a5346008c.tar.bz2 |
Mark .gnu.debuglto_.debug_* as SHT_MIPS_DWARF
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/elfxx-mips.c | 8 |
2 files changed, 13 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ca605b3..abb9e09 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +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. diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 426f432..e4827fd 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -7448,7 +7448,9 @@ _bfd_mips_elf_section_from_shdr (bfd *abfd, 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: @@ -7669,7 +7671,9 @@ _bfd_mips_elf_fake_sections (bfd *abfd, Elf_Internal_Shdr *hdr, asection *sec) 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; |