From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7178 invoked by alias); 25 Aug 2017 03:02:53 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 4891 invoked by uid 89); 25 Aug 2017 03:02:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=calculations X-HELO: smtp-out6.electric.net Received: from smtp-out6.electric.net (HELO smtp-out6.electric.net) (192.162.217.186) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 25 Aug 2017 03:02:47 +0000 Received: from 1dl4tQ-0004eY-VB by out6d.electric.net with emc1-ok (Exim 4.87) (envelope-from ) id 1dl4tQ-0004fj-Vt for binutils@sourceware.org; Thu, 24 Aug 2017 20:02:44 -0700 Received: by emcmailer; Thu, 24 Aug 2017 20:02:44 -0700 Received: from [188.39.184.226] (helo=glaexch1.ftdichip.com) by out6d.electric.net with esmtps (TLSv1:AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1dl4tQ-0004eY-VB for binutils@sourceware.org; Thu, 24 Aug 2017 20:02:44 -0700 Received: from GLAEXCH1.ftdi.local ([172.16.0.121]) by glaexch3 ([172.16.0.161]) with mapi id 14.01.0438.000; Fri, 25 Aug 2017 04:02:44 +0100 From: James Bowman To: "binutils@sourceware.org" Subject: [repost] [PATCH] FT32: Permit R_FT32_18 overflow Date: Fri, 25 Aug 2017 03:02:00 -0000 Message-ID: <2BB0A51F073B384698CACFD1D5A30FCC0D43E15E@glaexch1> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Outbound-IP: 188.39.184.226 X-Env-From: james.bowman@ftdichip.com X-Proto: esmtps X-Revdns: 188-39-184-226.static.enta.net X-TLS: TLSv1:AES128-SHA:128 X-Authenticated_ID: X-PolicySMART: 10711027 X-SW-Source: 2017-08/txt/msg00277.txt.bz2 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. OK to apply? James. bfd/ChangeLog: 2017-08-22 James Bowman * elf32-ft32.c (ft32_elf_howto_table): Use complain_overflow_dont for R_FT= 32_18 --- 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 [] =3D 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 */