aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-x86_64.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-03 23:49:21 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-03 23:49:21 +0000
commitd543c50d66d2d8955b577a013914d29bf470ffd2 (patch)
treeceecba4ada10a23e471fb464066b73f587770a44 /bfd/coff-x86_64.c
parentc38eb2a67d19e81f2bb2c639adf64e8820dc1085 (diff)
downloadbinutils-d543c50d66d2d8955b577a013914d29bf470ffd2.zip
binutils-d543c50d66d2d8955b577a013914d29bf470ffd2.tar.gz
binutils-d543c50d66d2d8955b577a013914d29bf470ffd2.tar.bz2
2011-03-03 Michael Snyder <msnyder@vmware.com>
* coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
Diffstat (limited to 'bfd/coff-x86_64.c')
-rw-r--r--bfd/coff-x86_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coff-x86_64.c b/bfd/coff-x86_64.c
index 8083d97..c739d69 100644
--- a/bfd/coff-x86_64.c
+++ b/bfd/coff-x86_64.c
@@ -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;