Fix off-by-one error whilst sweeping vtable relocs
This commit is contained in:
parent
3fc90ddbe3
commit
374b596dd6
|
@ -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>
|
2001-08-30 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* elf32-mips.c (mips_elf_calculate_relocation): Revert the last
|
* elf32-mips.c (mips_elf_calculate_relocation): Revert the last
|
||||||
|
|
|
@ -7101,10 +7101,12 @@ elf_gc_propagate_vtable_entries_used (h, okp)
|
||||||
int file_align = bed->s->file_align;
|
int file_align = bed->s->file_align;
|
||||||
|
|
||||||
n = h->vtable_parent->vtable_entries_size / file_align;
|
n = h->vtable_parent->vtable_entries_size / file_align;
|
||||||
while (--n != 0)
|
while (n--)
|
||||||
{
|
{
|
||||||
if (*pu) *cu = true;
|
if (*pu)
|
||||||
pu++, cu++;
|
*cu = true;
|
||||||
|
pu++;
|
||||||
|
cu++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue