projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fc90dd
)
Fix off-by-one error whilst sweeping vtable relocs
author
Nick Clifton
<nickc@redhat.com>
Fri, 31 Aug 2001 16:16:14 +0000
(16:16 +0000)
committer
Nick Clifton
<nickc@redhat.com>
Fri, 31 Aug 2001 16:16:14 +0000
(16:16 +0000)
bfd/ChangeLog
patch
|
blob
|
history
bfd/elflink.h
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 1eba7a82f9d54b7809c67761a9096a002878aee7..4f3b21196a6d5859670f2fcb5edc3b95be96806d 100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,8
@@
+2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
+
+ * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
+ error.
+
2001-08-30 H.J. Lu <hjl@gnu.org>
* elf32-mips.c (mips_elf_calculate_relocation): Revert the last
diff --git
a/bfd/elflink.h
b/bfd/elflink.h
index c2bcc45c3689c95255a761179aee06c56d3f0efc..0da2f0e76ea58d52c60501656199becc9a03b76d 100644
(file)
--- a/
bfd/elflink.h
+++ b/
bfd/elflink.h
@@
-7101,10
+7101,12
@@
elf_gc_propagate_vtable_entries_used (h, okp)
int file_align = bed->s->file_align;
n = h->vtable_parent->vtable_entries_size / file_align;
- while (
--n != 0
)
+ while (
n--
)
{
- if (*pu) *cu = true;
- pu++, cu++;
+ if (*pu)
+ *cu = true;
+ pu++;
+ cu++;
}
}
}