aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-07-26 18:15:46 +0000
committerMichael Snyder <msnyder@vmware.com>2007-07-26 18:15:46 +0000
commitb7fd5ce17da6b61e8e13a27d86db9f5d07edb82b (patch)
tree3af19f15736ef7700901ca1b0923d96b07fff1b8 /bfd
parent33774f084b0c1094d0ae966e4339db378fc60b53 (diff)
downloadfsf-binutils-gdb-b7fd5ce17da6b61e8e13a27d86db9f5d07edb82b.zip
fsf-binutils-gdb-b7fd5ce17da6b61e8e13a27d86db9f5d07edb82b.tar.gz
fsf-binutils-gdb-b7fd5ce17da6b61e8e13a27d86db9f5d07edb82b.tar.bz2
2007-07-26 Michael Snyder <msnyder@access-company.com>
* elf.c (_bfd_elf_get_synthetic_symtab): Remove meaningless pointer increment.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 954a47d..3b90fcd 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-26 Michael Snyder <msnyder@access-company.com>
+
+ * elf.c (_bfd_elf_get_synthetic_symtab): Remove meaningless
+ pointer increment.
+
2007-07-26 Alan Modra <amodra@bigpond.net.au>
* elflink.c (_bfd_elf_fix_symbol_flags): Remove unnecessary
diff --git a/bfd/elf.c b/bfd/elf.c
index f8bd7f9..e804dbd 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -8419,7 +8419,7 @@ _bfd_elf_get_synthetic_symtab (bfd *abfd,
count = relplt->size / hdr->sh_entsize;
size = count * sizeof (asymbol);
p = relplt->relocation;
- for (i = 0; i < count; i++, s++, p++)
+ for (i = 0; i < count; i++, p++)
size += strlen ((*p->sym_ptr_ptr)->name) + sizeof ("@plt");
s = *ret = bfd_malloc (size);