summaryrefslogtreecommitdiff
path: root/bfd/elf32-cris.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2001-10-20 23:16:17 +0000
committerH.J. Lu <hjl@lucon.org>2001-10-20 23:16:17 +0000
commitce99355887493a80a301064dda848621085aa091 (patch)
treeba89ddf1a7f0d386f62255a8b21124208eb56e17 /bfd/elf32-cris.c
parent20a55045c506154c25df07837cdd2e71c8d599ee (diff)
downloadgdb-ce99355887493a80a301064dda848621085aa091.tar.gz
2001-10-20 H.J. Lu <hjl@gnu.org>
* elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
Diffstat (limited to 'bfd/elf32-cris.c')
-rw-r--r--bfd/elf32-cris.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index 81784259183..d4d543bd17f 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -440,7 +440,7 @@ cris_reloc_type_lookup (abfd, code)
unsigned int i;
for (i = sizeof (cris_reloc_map) / sizeof (cris_reloc_map[0]);
- --i;)
+ --i >= 0;)
if (cris_reloc_map [i].bfd_reloc_val == code)
return & cris_elf_howto_table [cris_reloc_map[i].cris_reloc_val];