2011-03-03 Michael Snyder <msnyder@vmware.com>

* coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
This commit is contained in:
Michael Snyder 2011-03-03 23:49:21 +00:00
parent c38eb2a67d
commit d543c50d66
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2011-03-03 Michael Snyder <msnyder@vmware.com> 2011-03-03 Michael Snyder <msnyder@vmware.com>
* coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
* aoutx.h (aout_final_link): Use sizeof int not sizeof int*. * aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
(aout_link_write_other_symbol): Missing break statement. (aout_link_write_other_symbol): Missing break statement.

View File

@ -546,7 +546,7 @@ coff_amd64_rtype_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
{ {
reloc_howto_type *howto; reloc_howto_type *howto;
if (rel->r_type > ARRAY_SIZE (howto_table)) if (rel->r_type >= ARRAY_SIZE (howto_table))
{ {
bfd_set_error (bfd_error_bad_value); bfd_set_error (bfd_error_bad_value);
return NULL; return NULL;