diff options
author | Alan Modra <amodra@bigpond.net.au> | 2004-12-11 04:32:35 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2004-12-11 04:32:35 +0000 |
commit | 88c2fa47eff22ca10303723787cd16785a3b138d (patch) | |
tree | 9a7bc2f10f39cefeef7fc0a831fb229d480ea524 /bfd/elfcode.h | |
parent | e499622168f2ac20e72dd102b9400d4edd9b8728 (diff) | |
download | gdb-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.h | 6 |
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 |