* elf.c (bfd_elf_sym_name): Rename from bfd_elf_local_sym_name.
authorAlan Modra <amodra@gmail.com>
Fri, 10 Dec 2004 13:18:40 +0000 (13:18 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 10 Dec 2004 13:18:40 +0000 (13:18 +0000)
(group_signature): Update calls.
* elf-bfd.h (bfd_elf_sym_name): Update.
* elf32-ppc.c (ppc_elf_relocate_section): Update.
* elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc)
(ppc64_elf_relocate_section): Update
* elflink.c (elf_link_input_bfd): Update.

bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf.c
bfd/elf32-ppc.c
bfd/elf64-ppc.c
bfd/elflink.c

index 415356ddf5f3aa4da090f72d7ed343408e5c6dce..8b700386c6a1a0e1929e01baab5a5558c1047a76 100644 (file)
@@ -1,3 +1,13 @@
+2004-12-10  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (bfd_elf_sym_name): Rename from bfd_elf_local_sym_name.
+       (group_signature): Update calls.
+       * elf-bfd.h (bfd_elf_sym_name): Update.
+       * elf32-ppc.c (ppc_elf_relocate_section): Update.
+       * elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc) 
+       (ppc64_elf_relocate_section): Update
+       * elflink.c (elf_link_input_bfd): Update.
+
 2004-12-10  Jakub Jelinek  <jakub@redhat.com>
 
        * elf.c (bfd_elf_local_sym_name): Avoid crashes with invalid
index 5367ad65a43d816ba34356fd11c876c85dd39f6a..ae6de15fb7f20b0a16bcdb3dede9df9ca9bf4275 100644 (file)
@@ -1357,7 +1357,7 @@ extern char *bfd_elf_get_str_section
 extern Elf_Internal_Sym *bfd_elf_get_elf_syms
   (bfd *, Elf_Internal_Shdr *, size_t, size_t, Elf_Internal_Sym *, void *,
    Elf_External_Sym_Shndx *);
-extern const char *bfd_elf_local_sym_name
+extern const char *bfd_elf_sym_name
   (bfd *, Elf_Internal_Sym *);
 
 extern bfd_boolean _bfd_elf_copy_private_bfd_data
index 2eef4baeecf83917e9e35e8ec9b741ee25c4cf4e..a136102fdbac0d6c36760f4c210ea53362a64870 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -405,7 +405,7 @@ bfd_elf_get_elf_syms (bfd *ibfd,
 
 /* Look up a symbol name.  */
 const char *
-bfd_elf_local_sym_name (bfd *abfd, Elf_Internal_Sym *isym)
+bfd_elf_sym_name (bfd *abfd, Elf_Internal_Sym *isym)
 {
   unsigned int iname = isym->st_name;
   unsigned int shindex = elf_tdata (abfd)->symtab_hdr.sh_link;
@@ -451,7 +451,7 @@ group_signature (bfd *abfd, Elf_Internal_Shdr *ghdr)
                            &isym, esym, &eshndx) == NULL)
     return NULL;
 
-  return bfd_elf_local_sym_name (abfd, &isym);
+  return bfd_elf_sym_name (abfd, &isym);
 }
 
 /* Set next_in_group list pointer, and group name for NEWSECT.  */
index 0605da64f943a87e0a59f77b2e539a5a80bb3d3a..f17b89b403e7eaee88835b5fd4ae5c44bc76829e 100644 (file)
@@ -4694,7 +4694,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
        {
          sym = local_syms + r_symndx;
          sec = local_sections[r_symndx];
-         sym_name = bfd_elf_local_sym_name (input_bfd, sym);
+         sym_name = bfd_elf_sym_name (input_bfd, sym);
 
          relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
        }
index d230c1bdb343538b69451926cb39eca7a290382a..cf94a42752731e856908745b0cafb7b32d1502ed 100644 (file)
@@ -6006,7 +6006,7 @@ ppc64_elf_edit_opd (bfd *obfd, struct bfd_link_info *info,
              if (h != NULL)
                sym_name = h->root.root.string;
              else
-               sym_name = bfd_elf_local_sym_name (ibfd, sym);
+               sym_name = bfd_elf_sym_name (ibfd, sym);
 
              (*_bfd_error_handler)
                (_("%B: undefined sym `%s' in .opd section"),
@@ -7051,7 +7051,7 @@ ppc64_elf_edit_toc (bfd *obfd ATTRIBUTE_UNUSED, struct bfd_link_info *info)
                      {
                        (*_bfd_error_handler)
                          (_("%s defined in removed toc entry"),
-                          bfd_elf_local_sym_name (ibfd, sym));
+                          bfd_elf_sym_name (ibfd, sym));
                        sym->st_value = 0;
                        sym->st_shndx = SHN_ABS;
                      }
@@ -9142,7 +9142,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
 
          sym = local_syms + r_symndx;
          sec = local_sections[r_symndx];
-         sym_name = bfd_elf_local_sym_name (input_bfd, sym);
+         sym_name = bfd_elf_sym_name (input_bfd, sym);
          sym_type = ELF64_ST_TYPE (sym->st_info);
          relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
          opd_adjust = get_opd_info (sec);
index 6e875960e1e3e2bf6de8eebd6d521e910099dabb..05bd21a90c7d8cf5a7af31545bfe37c448e1a8dd 100644 (file)
@@ -6819,7 +6819,7 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd)
                    {
                      Elf_Internal_Sym *sym = isymbuf + r_symndx;
                      ps = &finfo->sections[r_symndx];
-                     sym_name = bfd_elf_local_sym_name (input_bfd, sym);
+                     sym_name = bfd_elf_sym_name (input_bfd, sym);
                    }
 
                  /* Complain if the definition comes from a