This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] FT32: Permit R_FT32_18 overflow
- From: James Bowman <jamesbowman at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 31 Aug 2017 02:45:50 -0000
- Subject: [binutils-gdb] FT32: Permit R_FT32_18 overflow
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ef32532f22be7e98c25480449fbc7a80d1030e1e
commit ef32532f22be7e98c25480449fbc7a80d1030e1e
Author: James Bowman <jamesb@excamera.com>
Date: Wed Aug 30 19:44:58 2017 -0700
FT32: Permit R_FT32_18 overflow
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.
Diff:
---
bfd/ChangeLog | 5 +++++
bfd/elf32-ft32.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 52a88f8..5b661b9 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf32-ft32.c b/bfd/elf32-ft32.c
index 13d5d7b..233c5a1 100644
--- a/bfd/elf32-ft32.c
+++ b/bfd/elf32-ft32.c
@@ -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 */