aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-i386.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-07-27 21:23:01 +0000
committerMichael Snyder <msnyder@vmware.com>2007-07-27 21:23:01 +0000
commit50a39e971efc325abcb37c3fed453eaa6fee3b2f (patch)
tree9fcba883d75f1aab0e8ff40cf4bfbb03150e05c0 /bfd/coff-i386.c
parent87b3278031d935fffc282bd376ce6303d926b0e0 (diff)
downloadgdb-50a39e971efc325abcb37c3fed453eaa6fee3b2f.zip
gdb-50a39e971efc325abcb37c3fed453eaa6fee3b2f.tar.gz
gdb-50a39e971efc325abcb37c3fed453eaa6fee3b2f.tar.bz2
2007-07-27 Michael Snyder <msnyder@access-company.com>
* coff-i386.c (coff_i386_rtype_to_howto): Off by one error.
Diffstat (limited to 'bfd/coff-i386.c')
-rw-r--r--bfd/coff-i386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c
index e5c6a6b..115fdf2 100644
--- a/bfd/coff-i386.c
+++ b/bfd/coff-i386.c
@@ -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;