* elf32-cris.c (cris_reloc_type_lookup): Change loop to use
unsigned, increasing index.
This commit is contained in:
parent
ce4148445e
commit
908d94bfcd
|
@ -1,3 +1,8 @@
|
||||||
|
2001-10-24 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
|
* elf32-cris.c (cris_reloc_type_lookup): Change loop to use
|
||||||
|
unsigned, increasing index.
|
||||||
|
|
||||||
2001-10-23 H.J. Lu <hjl@gnu.org>
|
2001-10-23 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
|
* elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
|
||||||
|
@ -43,7 +48,8 @@
|
||||||
|
|
||||||
2001-10-21 H.J. Lu <hjl@gnu.org>
|
2001-10-21 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* elf32-cris.c (cris_reloc_type_lookup): Use int for index.
|
* elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover
|
||||||
|
index 0.
|
||||||
|
|
||||||
2001-10-20 H.J. Lu <hjl@gnu.org>
|
2001-10-20 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -437,10 +437,9 @@ cris_reloc_type_lookup (abfd, code)
|
||||||
bfd * abfd ATTRIBUTE_UNUSED;
|
bfd * abfd ATTRIBUTE_UNUSED;
|
||||||
bfd_reloc_code_real_type code;
|
bfd_reloc_code_real_type code;
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
for (i = sizeof (cris_reloc_map) / sizeof (cris_reloc_map[0]);
|
for (i = 0; i < sizeof (cris_reloc_map) / sizeof (cris_reloc_map[0]); i++)
|
||||||
--i >= 0;)
|
|
||||||
if (cris_reloc_map [i].bfd_reloc_val == code)
|
if (cris_reloc_map [i].bfd_reloc_val == code)
|
||||||
return & cris_elf_howto_table [cris_reloc_map[i].cris_reloc_val];
|
return & cris_elf_howto_table [cris_reloc_map[i].cris_reloc_val];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue