summaryrefslogtreecommitdiff
path: root/bfd/elf-ifunc.c
diff options
context:
space:
mode:
authorwillnewton <willnewton>2013-05-07 17:03:51 +0000
committerwillnewton <willnewton>2013-05-07 17:03:51 +0000
commita26a65fe2ce61399d14f7ec0dee2909805fb6dfb (patch)
tree272c4ea93683fb50eb466fd21d34d4a8e6cc82c5 /bfd/elf-ifunc.c
parentda4eaffcb8c594c89dedd94b7bbbe86b5249551b (diff)
downloadbinutils-redhat-a26a65fe2ce61399d14f7ec0dee2909805fb6dfb.tar.gz
bfd/elf-ifunc.c: Add header size arg to _bfd_elf_allocate_ifunc_dyn_relocs.
bfd/ChangeLog: 2013-05-07 Will Newton <will.newton@linaro.org> * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Add a plt_header_size argument for ports where it differs from plt_entry_size. * elf-bfd.h: Likewise. * elf32-i386.c: Pass plt_header_size to _bfd_elf_allocate_ifunc_dyn_relocs. * elf64-x86-64.c: Likewise.
Diffstat (limited to 'bfd/elf-ifunc.c')
-rw-r--r--bfd/elf-ifunc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf-ifunc.c b/bfd/elf-ifunc.c
index ea08329d2e..8d48e66eef 100644
--- a/bfd/elf-ifunc.c
+++ b/bfd/elf-ifunc.c
@@ -112,6 +112,7 @@ _bfd_elf_allocate_ifunc_dyn_relocs (struct bfd_link_info *info,
struct elf_link_hash_entry *h,
struct elf_dyn_relocs **head,
unsigned int plt_entry_size,
+ unsigned int plt_header_size,
unsigned int got_entry_size)
{
asection *plt, *gotplt, *relplt;
@@ -193,7 +194,7 @@ keep:
/* If this is the first .plt entry, make room for the special
first entry. */
if (plt->size == 0)
- plt->size += plt_entry_size;
+ plt->size += plt_header_size;
}
else
{