summaryrefslogtreecommitdiffstats
path: root/bfd
diff options
context:
space:
mode:
authorWill Newton <willnewton@sourceware.org>2013-05-07 17:01:12 +0000
committerWill Newton <willnewton@sourceware.org>2013-05-07 17:01:12 +0000
commit1ee9e8b3d23a202aac82a524353c4ec3366477c7 (patch)
tree27e943120dc388c3e2697ddb2db85c389987ffef /bfd
parentbe8b1ea6766a74d67581dc1012d04bef81f1b3bf (diff)
downloadppe42-binutils-1ee9e8b3d23a202aac82a524353c4ec3366477c7.tar.gz
ppe42-binutils-1ee9e8b3d23a202aac82a524353c4ec3366477c7.zip
bfd/elf-ifunc.c: Remove unused function _bfd_elf_create_ifunc_dyn_reloc.
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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf-bfd.h3
-rw-r--r--bfd/elf-ifunc.c45
3 files changed, 6 insertions, 48 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f70fa2fc4f..5e24d2e1df 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index b643dbc8a8..d1a7e26208 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -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);
diff --git a/bfd/elf-ifunc.c b/bfd/elf-ifunc.c
index c2fa163a53..ea08329d2e 100644
--- a/bfd/elf-ifunc.c
+++ b/bfd/elf-ifunc.c
@@ -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. */
OpenPOWER on IntegriCloud