aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-12-11 04:32:37 +0000
committerAlan Modra <amodra@gmail.com>2004-12-11 04:32:37 +0000
commit5c799c07901549f0d27349514f0ded5e8d7f16cc (patch)
tree64e15a94e1321df67e7f958a4d7f26b3cd3970a9 /bfd/elfcode.h
parent645ea6a951e7e1d48eff89c71a812ed5bc308b57 (diff)
downloadgdb-5c799c07901549f0d27349514f0ded5e8d7f16cc.zip
gdb-5c799c07901549f0d27349514f0ded5e8d7f16cc.tar.gz
gdb-5c799c07901549f0d27349514f0ded5e8d7f16cc.tar.bz2
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 a06b839..0e22c33 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