From 643be349a928c3b8df3ff338cff47cce8bed300b Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 20 Apr 2010 09:53:05 +0000 Subject: [PATCH] * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name. --- bfd/ChangeLog | 5 +++++ bfd/dwarf2.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ca047e798fd..8b3cd94fa52 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2010-04-20 Jakub Jelinek + + * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat + DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name. + 2010-04-19 Nick Clifton * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 11618c08125..9b194aaa66b 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -1950,13 +1950,15 @@ find_abstract_instance_name (struct comp_unit *unit, switch (attr.name) { case DW_AT_name: - /* Prefer DW_AT_MIPS_linkage_name over DW_AT_name. */ + /* Prefer DW_AT_MIPS_linkage_name or DW_AT_linkage_name + over DW_AT_name. */ if (name == NULL) name = attr.u.str; break; case DW_AT_specification: name = find_abstract_instance_name (unit, &attr); break; + case DW_AT_linkage_name: case DW_AT_MIPS_linkage_name: name = attr.u.str; break; @@ -2126,11 +2128,13 @@ scan_unit_for_symbols (struct comp_unit *unit) break; case DW_AT_name: - /* Prefer DW_AT_MIPS_linkage_name over DW_AT_name. */ + /* Prefer DW_AT_MIPS_linkage_name or DW_AT_linkage_name + over DW_AT_name. */ if (func->name == NULL) func->name = attr.u.str; break; + case DW_AT_linkage_name: case DW_AT_MIPS_linkage_name: func->name = attr.u.str; break; -- 2.30.2