]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2011-03-03 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Thu, 3 Mar 2011 23:49:21 +0000 (23:49 +0000)
committerMichael Snyder <msnyder@vmware.com>
Thu, 3 Mar 2011 23:49:21 +0000 (23:49 +0000)
* coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.

bfd/ChangeLog
bfd/coff-x86_64.c

index d6e022eac7408a3cd6a45f005c2fc5eaf2dfc5b7..918927ac808f297426a6ed29fad6a6fe9820f976 100644 (file)
@@ -1,5 +1,7 @@
 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*.
        (aout_link_write_other_symbol): Missing break statement.
 
index 8083d978dd98d1550a46375787c3ea7e92d0acd9..c739d69c7307373cc3223106ba8dcc6239f0e27e 100644 (file)
@@ -546,7 +546,7 @@ coff_amd64_rtype_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
 {
   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);
       return NULL;