From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id E51E13858D35; Thu, 5 Jan 2023 04:06:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E51E13858D35 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: bfd-cvs@sourceware.org Subject: [binutils-gdb] PR29963, PDP11 link produces spurious relocation truncated messages X-Act-Checkin: binutils-gdb X-Git-Author: Paul Koning X-Git-Refname: refs/heads/master X-Git-Oldrev: ddfc4317d5b99c284bf112819f00f149f7e94600 X-Git-Newrev: 38afcc0c69d2f547d47fdba12ed5b090ae2b976e Message-Id: <20230105040656.E51E13858D35@sourceware.org> Date: Thu, 5 Jan 2023 04:06:56 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2023 04:06:57 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D38afcc0c69d2= f547d47fdba12ed5b090ae2b976e commit 38afcc0c69d2f547d47fdba12ed5b090ae2b976e Author: Paul Koning Date: Wed Jan 4 22:29:00 2023 +0000 PR29963, PDP11 link produces spurious relocation truncated messages =20 PDP11 is a 16-bit processor with 16-bit logical addresses. Therefore wrapping should be allowed on the 16-bit relocs, and may as well be allowed for the 32-bit reloc too. =20 PR 29963 * pdp11.c (howto_table_pdp11): Use complain_overflow_dont. Diff: --- bfd/pdp11.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bfd/pdp11.c b/bfd/pdp11.c index 28936348abf..862cf49fda3 100644 --- a/bfd/pdp11.c +++ b/bfd/pdp11.c @@ -280,9 +280,9 @@ static bool separate_i_d =3D false; reloc_howto_type howto_table_pdp11[] =3D { /* type rs size bsz pcrel bitpos ovrf sf name part_inpl = readmask setmask pcdone */ -HOWTO( 0, 0, 2, 16, false, 0, complain_overflow_signed,0,"16", t= rue, 0x0000ffff,0x0000ffff, false), -HOWTO( 1, 0, 2, 16, true, 0, complain_overflow_signed,0,"DISP16= ", true, 0x0000ffff,0x0000ffff, false), -HOWTO( 2, 0, 4, 32, false, 0, complain_overflow_signed,0,"32", t= rue, 0x0000ffff,0x0000ffff, false), +HOWTO( 0, 0, 2, 16, false, 0, complain_overflow_dont,0,"16", tru= e, 0x0000ffff,0x0000ffff, false), +HOWTO( 1, 0, 2, 16, true, 0, complain_overflow_dont,0,"DISP16",= true, 0x0000ffff,0x0000ffff, false), +HOWTO( 2, 0, 4, 32, false, 0, complain_overflow_dont,0,"32", tru= e, 0x0000ffff,0x0000ffff, false), }; =20 #define TABLE_SIZE(TABLE) (sizeof(TABLE)/sizeof(TABLE[0]))