From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1039) id D21C93858D33; Fri, 29 Dec 2023 20:44:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D21C93858D33 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: H.J. Lu To: bfd-cvs@sourceware.org Subject: [binutils-gdb] Fix x86-64: Add R_X86_64_CODE_4_GOTPCRELX X-Act-Checkin: binutils-gdb X-Git-Author: H.J. Lu X-Git-Refname: refs/heads/master X-Git-Oldrev: 3396471b4cd4032adcc8eabb46d2a3ab0c876368 X-Git-Newrev: eed38d8a02b277825a682d8d1daeb0bcc4508b04 Message-Id: <20231229204415.D21C93858D33@sourceware.org> Date: Fri, 29 Dec 2023 20:44:15 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Dec 2023 20:44:16 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Deed38d8a02b2= 77825a682d8d1daeb0bcc4508b04 commit eed38d8a02b277825a682d8d1daeb0bcc4508b04 Author: H.J. Lu Date: Fri Dec 29 12:43:11 2023 -0800 Fix x86-64: Add R_X86_64_CODE_4_GOTPCRELX =20 commit 3d5a60de52556f6a53d71d7e607c6696450ae3e4 Author: H.J. Lu Date: Thu Jun 8 10:01:03 2023 -0700 =20 x86-64: Add R_X86_64_CODE_4_GOTPCRELX =20 added a new field, fx_tcbit3, to fix. But it didn't initialize it. Fix it by clearing it in fix_new_internal. =20 * wrtite.c (fix_new_internal): Clear fx_tcbit3. Diff: --- gas/write.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gas/write.c b/gas/write.c index 20ba3f8bd84..5612b401f46 100644 --- a/gas/write.c +++ b/gas/write.c @@ -169,6 +169,7 @@ fix_new_internal (fragS *frag, /* Which frag? */ fixP->fx_addnumber =3D 0; fixP->fx_tcbit =3D 0; fixP->fx_tcbit2 =3D 0; + fixP->fx_tcbit3 =3D 0; fixP->fx_done =3D 0; fixP->fx_no_overflow =3D 0; fixP->fx_signed =3D 0;