* elfxx-mips.c (_bfd_mips_elf_discard_info): Correct loop index.
authorDaniel Jacobowitz <drow@false.org>
Fri, 30 May 2003 19:13:36 +0000 (19:13 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 30 May 2003 19:13:36 +0000 (19:13 +0000)
Reported by Ken Faiczak <kfaiczak@SANDVINE.com>.

bfd/ChangeLog
bfd/elfxx-mips.c

index 8eb1bfe5e30b536b65c0e63e651c573d3be006cd..ac381e6f64d0960910b3239b6999d3d73c69051f 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-30  Daniel Jacobowitz  <drow@mvista.com>
+
+       * elfxx-mips.c (_bfd_mips_elf_discard_info): Correct loop index.
+       Reported by Ken Faiczak <kfaiczak@SANDVINE.com>.
+
 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
            Jakub Jelinek  <jakub@redhat.com>
 
index 8f7e7c69c923e73760466d76a541d4fa661f6e4d..e390bed9eba65348613e5e79d8bf38ea58b58e0a 100644 (file)
@@ -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))
        {