summaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-12-11 04:32:35 +0000
committerAlan Modra <amodra@bigpond.net.au>2004-12-11 04:32:35 +0000
commit88c2fa47eff22ca10303723787cd16785a3b138d (patch)
tree9a7bc2f10f39cefeef7fc0a831fb229d480ea524 /bfd/elfcode.h
parente499622168f2ac20e72dd102b9400d4edd9b8728 (diff)
downloadgdb-88c2fa47eff22ca10303723787cd16785a3b138d.tar.gz
bfd/
* 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.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index a06b839e9a7..0e22c33c47a 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -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