2001-10-20 H.J. Lu <hjl@gnu.org>

* elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
This commit is contained in:
H.J. Lu 2001-10-20 23:16:17 +00:00
parent c984738146
commit 6a7805b5c0
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-10-20 H.J. Lu <hjl@gnu.org>
* elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
2001-10-19 H.J. Lu <hjl@gnu.org>
* elfcode.h (elf_object_p): Don't clear D_PAGED if the section

View File

@ -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];