[PATCH 6/7] bfd/Dwarf2: gas doesn't mangle names

Jan Beulich jbeulich@suse.com
Mon Mar 28 09:11:52 GMT 2022


Include the language identifier emitted by gas in the set of ones where
no mangled names are expected. Even if there could be "hand-mangled"
names, gas doesn't emit DW_AT_linkage_name in the first place.
---
I wonder whether in the absence of a linkage-name attribute ->is_linkage
shouldn't be set independent of what non_mangled() returns.

--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -1441,6 +1441,7 @@ non_mangled (int lang)
     case DW_LANG_PLI:
     case DW_LANG_UPC:
     case DW_LANG_C11:
+    case DW_LANG_Mips_Assembler:
       return true;
     }
 }



More information about the Binutils mailing list