diff options
Diffstat (limited to 'bfd/coff-x86_64.c')
-rw-r--r-- | bfd/coff-x86_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coff-x86_64.c b/bfd/coff-x86_64.c index 8083d978dd..c739d69c73 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; |