]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/elf-ifunc.c: Remove unused function _bfd_elf_create_ifunc_dyn_reloc.
authorWill Newton <willnewton@sourceware.org>
Tue, 7 May 2013 17:01:12 +0000 (17:01 +0000)
committerWill Newton <willnewton@sourceware.org>
Tue, 7 May 2013 17:01:12 +0000 (17:01 +0000)
bfd/ChangeLog:

2013-05-07  Will Newton  <will.newton@linaro.org>

        * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Remove unused
function.
* elf-bfd.h: Likewise.

bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf-ifunc.c

index f70fa2fc4f87c9b25d403ef79c438d5d5f7b37f8..5e24d2e1dfe0d5ea40afead71af37b232f1cbbea 100644 (file)
@@ -1,3 +1,9 @@
+2013-05-07  Will Newton  <will.newton@linaro.org>
+
+        * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Remove unused
+       function.
+       * elf-bfd.h: Likewise.
+
 2013-05-06  Paul Brook  <paul@codesourcery.com>
 
         * elf64-mips.c (elf_mips_gnu_pcrel32): New.
index b643dbc8a80d4d9bfd32eb5a8d44192642080ab5..d1a7e2620832ca7ca4f2769e0d62ddca168aec06 100644 (file)
@@ -2378,9 +2378,6 @@ struct elf_dyn_relocs
 
 extern bfd_boolean _bfd_elf_create_ifunc_sections
   (bfd *, struct bfd_link_info *);
-extern asection * _bfd_elf_create_ifunc_dyn_reloc
-  (bfd *, struct bfd_link_info *, asection *sec, asection *sreloc,
-   struct elf_dyn_relocs **);
 extern bfd_boolean _bfd_elf_allocate_ifunc_dyn_relocs
   (struct bfd_link_info *, struct elf_link_hash_entry *,
    struct elf_dyn_relocs **, unsigned int, unsigned int);
index c2fa163a53aa9574a0c57e47410f656eb2bf0f19..ea08329d2ed8b6128d5a2920a8ceb20274a80226 100644 (file)
@@ -104,51 +104,6 @@ _bfd_elf_create_ifunc_sections (bfd *abfd, struct bfd_link_info *info)
   return TRUE;
 }
 
-/* For a STT_GNU_IFUNC symbol, create a dynamic reloc section, SRELOC,
-   for the input section, SEC, and append this reloc to HEAD.  */
-
-asection *
-_bfd_elf_create_ifunc_dyn_reloc (bfd *abfd, struct bfd_link_info *info,
-                                asection *sec, asection *sreloc,
-                                struct elf_dyn_relocs **head)
-{
-  struct elf_dyn_relocs *p;
-  struct elf_link_hash_table *htab = elf_hash_table (info);
-
-  if (sreloc == NULL)
-    {
-      const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-
-      if (htab->dynobj == NULL)
-       htab->dynobj = abfd;
-
-      sreloc = _bfd_elf_make_dynamic_reloc_section (sec, htab->dynobj,
-                                                   bed->s->log_file_align,
-                                                   abfd,
-                                                   bed->rela_plts_and_copies_p);
-      if (sreloc == NULL)
-       return NULL;
-    }
-
-  p = *head;
-  if (p == NULL || p->sec != sec)
-    {
-      bfd_size_type amt = sizeof *p;
-
-      p = ((struct elf_dyn_relocs *) bfd_alloc (htab->dynobj, amt));
-      if (p == NULL)
-       return NULL;
-      p->next = *head;
-      *head = p;
-      p->sec = sec;
-      p->count = 0;
-      p->pc_count = 0;
-    }
-  p->count += 1;
-
-  return sreloc;
-}
-
 /* Allocate space in .plt, .got and associated reloc sections for
    dynamic relocs against a STT_GNU_IFUNC symbol definition.  */