mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-31 14:04:12 +00:00
* elf32-sh.c (sh_elf_get_flags_from_mach): Fix off-by-one error.
This commit is contained in:
parent
843fe662b9
commit
4195f552a6
@ -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…
x
Reference in New Issue
Block a user