This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
correct ft32 reloc range test
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 1 Mar 2018 09:18:11 +1030
- Subject: correct ft32 reloc range test
- Authentication-results: sourceware.org; auth=none
* elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
diff --git a/bfd/elf32-ft32.c b/bfd/elf32-ft32.c
index b981a34..7c4e1ae 100644
--- a/bfd/elf32-ft32.c
+++ b/bfd/elf32-ft32.c
@@ -300,7 +300,7 @@ ft32_info_to_howto_rela (bfd *abfd,
unsigned int r_type;
r_type = ELF32_R_TYPE (dst->r_info);
- if (r_type < (unsigned int) R_FT32_max)
+ if (r_type >= (unsigned int) R_FT32_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%pB: unsupported relocation type %#x"),
--
Alan Modra
Australia Development Lab, IBM