X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Felfcode.h;h=0e22c33c47ab9a16f56a2c7c4352265e78fb30c1;hb=5c799c07901549f0d27349514f0ded5e8d7f16cc;hp=a06b839e9a7f59725f113e6ecde5c58908b7dd82;hpb=645ea6a951e7e1d48eff89c71a812ed5bc308b57;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/elfcode.h b/bfd/elfcode.h index a06b839e9a..0e22c33c47 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