From: Daniel Jacobowitz Date: Fri, 30 May 2003 19:13:36 +0000 (+0000) Subject: * elfxx-mips.c (_bfd_mips_elf_discard_info): Correct loop index. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9c27aad5461fcb1189ce1c8d7cf18c29e7346a2;p=binutils-gdb.git * elfxx-mips.c (_bfd_mips_elf_discard_info): Correct loop index. Reported by Ken Faiczak . --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8eb1bfe5e30..ac381e6f64d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-05-30 Daniel Jacobowitz + + * elfxx-mips.c (_bfd_mips_elf_discard_info): Correct loop index. + Reported by Ken Faiczak . + 2003-05-30 Ulrich Drepper Jakub Jelinek diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 8f7e7c69c92..e390bed9eba 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -7898,7 +7898,7 @@ _bfd_mips_elf_discard_info (abfd, cookie, info) cookie->rel = cookie->rels; cookie->relend = cookie->rels + o->reloc_count; - for (i = 0, skip = 0; i < o->_raw_size; i ++) + for (i = 0, skip = 0; i < o->_raw_size / PDR_SIZE; i ++) { if (MNAME(abfd,_bfd_elf,reloc_symbol_deleted_p) (i * PDR_SIZE, cookie)) {