diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-10-20 23:16:17 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-10-20 23:16:17 +0000 |
commit | 6a7805b5c05938868d60139bc38b487272ac51bd (patch) | |
tree | c7536d95b4767f9a000297e953b58543490ba2c2 /bfd/elf32-cris.c | |
parent | c9847381461f5f6013be6b6d1637b60fe122fdf7 (diff) | |
download | gdb-6a7805b5c05938868d60139bc38b487272ac51bd.zip gdb-6a7805b5c05938868d60139bc38b487272ac51bd.tar.gz gdb-6a7805b5c05938868d60139bc38b487272ac51bd.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index 8178425..d4d543b 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]; |