aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-05-30 19:13:36 +0000
committerDaniel Jacobowitz <drow@false.org>2003-05-30 19:13:36 +0000
commitc9c27aad5461fcb1189ce1c8d7cf18c29e7346a2 (patch)
treea8ce1b6ea6780703b203de66d23c63c8206ddffa /bfd/elfxx-mips.c
parentc89b70f16b4d135e778497072900b609ac23a540 (diff)
downloadgdb-c9c27aad5461fcb1189ce1c8d7cf18c29e7346a2.zip
gdb-c9c27aad5461fcb1189ce1c8d7cf18c29e7346a2.tar.gz
gdb-c9c27aad5461fcb1189ce1c8d7cf18c29e7346a2.tar.bz2
* elfxx-mips.c (_bfd_mips_elf_discard_info): Correct loop index.
Reported by Ken Faiczak <kfaiczak@SANDVINE.com>.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 8f7e7c6..e390bed 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))
{