2007-07-27 Michael Snyder <msnyder@access-company.com>
* coff-i386.c (coff_i386_rtype_to_howto): Off by one error.
This commit is contained in:
parent
87b3278031
commit
50a39e971e
@ -1,5 +1,7 @@
|
||||
2007-07-27 Michael Snyder <msnyder@access-company.com>
|
||||
|
||||
* coff-i386.c (coff_i386_rtype_to_howto): Off by one error.
|
||||
|
||||
* aoutx.h (slurp_symbol_table): Return if count == 0.
|
||||
|
||||
* coffgen.c (_bfd_coff_read_internal_relocs): Return if count is zero.
|
||||
|
@ -450,7 +450,7 @@ coff_i386_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
|
||||
{
|
||||
reloc_howto_type *howto;
|
||||
|
||||
if (rel->r_type > sizeof (howto_table) / sizeof (howto_table[0]))
|
||||
if (rel->r_type >= sizeof (howto_table) / sizeof (howto_table[0]))
|
||||
{
|
||||
bfd_set_error (bfd_error_bad_value);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user