summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2011-03-03 23:49:21 +0000
committerMichael Snyder <msnyder@specifix.com>2011-03-03 23:49:21 +0000
commit7b1eead1edd8cf6f2f0b6a063e1b208624c3f78c (patch)
tree857ee75436036e68bb2a6885443b1aed2768c307 /bfd
parente216df5fdeb79ed3023629ec4ec113f2a376f67b (diff)
downloadgdb-7b1eead1edd8cf6f2f0b6a063e1b208624c3f78c.tar.gz
2011-03-03 Michael Snyder <msnyder@vmware.com>
* coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog2
-rw-r--r--bfd/coff-x86_64.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d6e022eac74..918927ac808 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/coff-x86_64.c b/bfd/coff-x86_64.c
index 8083d978dd9..c739d69c730 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;