* elf32-sh.c (sh_elf_get_flags_from_mach): Fix off-by-one error.
This commit is contained in:
parent
843fe662b9
commit
4195f552a6
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2005-08-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
||||
|
||||
* elf32-sh.c (sh_elf_get_flags_from_mach): Fix off-by-one error.
|
||||
|
||||
2005-08-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/1208
|
||||
|
|
|
@ -6655,7 +6655,7 @@ sh_elf_set_mach_from_flags (bfd *abfd)
|
|||
int
|
||||
sh_elf_get_flags_from_mach (unsigned long mach)
|
||||
{
|
||||
int i = ARRAY_SIZE (sh_ef_bfd_table);
|
||||
int i = ARRAY_SIZE (sh_ef_bfd_table) - 1;
|
||||
|
||||
for (; i>0; i--)
|
||||
if (sh_ef_bfd_table[i] == mach)
|
||||
|
|
Loading…
Add table
Reference in a new issue