FT32: Permit R_FT32_18 overflow
authorJames Bowman <jamesb@excamera.com>
Thu, 31 Aug 2017 02:44:58 +0000 (19:44 -0700)
committerJames Bowman <jamesb@excamera.com>
Thu, 31 Aug 2017 02:44:58 +0000 (19:44 -0700)
The howto for R_FT32_18 was using complain_overflow_signed. But some
valid address calculations exceed the range of this reloc.  Changing it
to complain_overflow_dont allows them.

bfd/ChangeLog:

* elf32-ft32.c (ft32_elf_howto_table): Use
complain_overflow_dont for R_FT32_18.

bfd/ChangeLog
bfd/elf32-ft32.c

index 52a88f8d427184c000d573a257f75fa47b0ee2d8..5b661b9a9e5abb47437fb110a1d931e3523d3b67 100644 (file)
@@ -1,3 +1,8 @@
+2017-08-31  James Bowman  <james.bowman@ftdichip.com>
+
+       * elf32-ft32.c (ft32_elf_howto_table): Use complain_overflow_dont
+       for R_FT32_18.
+
 2017-08-31  Alan Modra  <amodra@gmail.com>
 
        PR binutils/22032
index 13d5d7b4ecc0df1b15184ab001a5243e12e29064..233c5a12f3ba5ebacbd524ff9c1429f323da5732 100644 (file)
@@ -139,7 +139,7 @@ static reloc_howto_type ft32_elf_howto_table [] =
         18,                    /* bitsize */
         FALSE,                 /* pc_relative */
         0,                     /* bitpos */
-        complain_overflow_signed, /* complain_on_overflow */
+        complain_overflow_dont, /* complain_on_overflow */
         bfd_elf_generic_reloc, /* special_function */
         "R_FT32_18",           /* name */
         FALSE,         /* partial_inplace */