From: H.J. Lu Date: Fri, 15 Nov 2013 17:31:09 +0000 (-0800) Subject: Make room for PLT0 directly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb81b736af76774d76ca6adb8e7ba245b030a7d9;p=binutils-gdb.git Make room for PLT0 directly * elf32-i386.c (elf_i386_allocate_dynrelocs): Make room for PLT0 directly. * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c0c9fa80293..94b89a05c3e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2013-11-15 H.J. Lu + + * elf32-i386.c (elf_i386_allocate_dynrelocs): Make room for + PLT0 directly. + * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. + 2013-11-14 Nick Clifton PR ld/16017 diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index a623a13c7de..4574c598bad 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -2219,7 +2219,7 @@ elf_i386_allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf) /* If this is the first .plt entry, make room for the special first entry. */ if (s->size == 0) - s->size += plt_entry_size; + s->size = plt_entry_size; h->plt.offset = s->size; diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 3b3f890352d..6ff5f36d040 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -2318,7 +2318,7 @@ elf_x86_64_allocate_dynrelocs (struct elf_link_hash_entry *h, void * inf) /* If this is the first .plt entry, make room for the special first entry. */ if (s->size == 0) - s->size += plt_entry_size; + s->size = plt_entry_size; h->plt.offset = s->size;