correct ft32 reloc range test
Alan Modra
amodra@gmail.com
Wed Feb 28 22:48:00 GMT 2018
* 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
More information about the Binutils
mailing list