OSDN Git Service

bfd/
authorAlan Modra <amodra@bigpond.net.au>
Sat, 11 Dec 2004 04:32:35 +0000 (04:32 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Sat, 11 Dec 2004 04:32:35 +0000 (04:32 +0000)
* elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
canonical sections syms have a name.

gas/testsuite/
Update for changed section syms.

ld/testsuite/
Update for changed section syms.

bfd/ChangeLog
bfd/elfcode.h

index e97ea6e..f61fd22 100644 (file)
@@ -1,5 +1,10 @@
 2004-12-11  Alan Modra  <amodra@bigpond.net.au>
 
+       * elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
+       canonical sections syms have a name.
+
+2004-12-11  Alan Modra  <amodra@bigpond.net.au>
+
        * elf64-ppc.c (opd_entry_value): Don't use cached relocs if they
        have been adjusted for output.
        (ppc64_elf_relocate_section): Mark sections with reloc_done.
index a06b839..0e22c33 100644 (file)
@@ -1086,9 +1086,7 @@ elf_slurp_symbol_table (bfd *abfd, asymbol **symptrs, bfd_boolean dynamic)
          memcpy (&sym->internal_elf_sym, isym, sizeof (Elf_Internal_Sym));
          sym->symbol.the_bfd = abfd;
 
-         sym->symbol.name = bfd_elf_string_from_elf_section (abfd,
-                                                             hdr->sh_link,
-                                                             isym->st_name);
+         sym->symbol.name = bfd_elf_sym_name (abfd, hdr, isym);
 
          sym->symbol.value = isym->st_value;
 
@@ -1217,7 +1215,7 @@ error_return:
   return -1;
 }
 
-/* Read  relocations for ASECT from REL_HDR.  There are RELOC_COUNT of
+/* Read relocations for ASECT from REL_HDR.  There are RELOC_COUNT of
    them.  */
 
 static bfd_boolean