aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-i386.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-11-15 09:31:09 -0800
committerH.J. Lu <hjl.tools@gmail.com>2013-11-15 09:32:24 -0800
commitbb81b736af76774d76ca6adb8e7ba245b030a7d9 (patch)
treea672feabbb046bf6e806d60c0dcc9ccd183e64ea /bfd/elf32-i386.c
parent8467a2fd5569f7345c025ca94467f50cd329560d (diff)
downloadgdb-bb81b736af76774d76ca6adb8e7ba245b030a7d9.zip
gdb-bb81b736af76774d76ca6adb8e7ba245b030a7d9.tar.gz
gdb-bb81b736af76774d76ca6adb8e7ba245b030a7d9.tar.bz2
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.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r--bfd/elf32-i386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index a623a13..4574c59 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;