* dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Apr 2010 09:53:05 +0000 (09:53 +0000)
committerJakub Jelinek <jakub@redhat.com>
Tue, 20 Apr 2010 09:53:05 +0000 (09:53 +0000)
DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.

bfd/ChangeLog
bfd/dwarf2.c

index ca047e798fda966f6055d65c34901ced0bbe0468..8b3cd94fa5218922e603d7390080a51c80b1e0dc 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-20  Jakub Jelinek  <jakub@redhat.com>
+
+       * 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  <nickc@redhat.com>
 
        * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
index 11618c081258776b528b1bb57dce9ab0dfc6d6ac..9b194aaa66bc0ed3b44b4a32e0eb71ef8a24a2bd 100644 (file)
@@ -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;