correct ft32 reloc range test
authorAlan Modra <amodra@gmail.com>
Wed, 28 Feb 2018 21:51:11 +0000 (08:21 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 28 Feb 2018 22:42:50 +0000 (09:12 +1030)
* elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.

bfd/ChangeLog
bfd/elf32-ft32.c

index 91bc2ef61666ebab216eea0bc3a597bd49d39afe..e2c5789bdb48731b7f775797aabddf7fc77c970d 100644 (file)
@@ -1,3 +1,7 @@
+2018-03-01  Alan Modra  <amodra@gmail.com>
+
+       * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
+
 2018-02-28  Alan Modra  <amodra@gmail.com>
 
        PR 22887
index b981a3431bd836baa57934b97814674c6d93a973..7c4e1aeb51d600d0206a8770347266528aa97b1c 100644 (file)
@@ -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"),
This page took 0.038311 seconds and 4 git commands to generate.