From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mengyan1223.wang (mengyan1223.wang [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id CDAB4385840C for ; Thu, 28 Apr 2022 16:15:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CDAB4385840C Received: from localhost.localdomain (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@mengyan1223.wang) by mengyan1223.wang (Postfix) with ESMTPSA id ED2C365EFB; Thu, 28 Apr 2022 12:15:54 -0400 (EDT) Message-ID: <6f7688d519524dd2d5dc5b10b51244ca40865760.camel@mengyan1223.wang> Subject: [PING^2 PATCH] gold: don't invoke IA32 syscall in x86_64 assembly testcase From: Xi Ruoyao To: Cary Coutant Cc: Jan Beulich , binutils@sourceware.org Date: Fri, 29 Apr 2022 00:15:53 +0800 In-Reply-To: References: <84f7610cf64aa40e838a8289100517b2318d8bc6.camel@mengyan1223.wang> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3030.3 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2022 16:15:59 -0000 On Sat, 2022-04-09 at 07:25 +0800, Xi Ruoyao wrote: > On Thu, 2022-03-31 at 09:05 -0700, Cary Coutant wrote: > > > On Thu, 2022-03-31 at 12:41 +0200, Jan Beulich wrote: > > > > On 12.03.2022 15:21, Xi Ruoyao via Binutils wrote: > > > > > pr17704a_test.s is a x86_64 assembly file, but it invokes IA32 > > > > > exit > > > > > syscall with "int 0x80".=C2=A0 This causes a segfault on kernels > > > > > with > > > > > CONFIG_IA32_EMULATION disabled. > > > > >=20 > > > > > gold/ > > > > >=20 > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 * testsuite/pr17704a_t= est.s (_start): Invoke x86_64 > > > > > exit > > > > > syscall > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 instead of its IA32 co= unterpart. > > > >=20 > > > > Okay. > > >=20 > > > I don't have write access to binutils-gdb.git, please help me to > > > push > > > it. > >=20 > > Sorry, yes, this is OK. I'll apply it. > >=20 > > -cary >=20 > Gentle ping again, in case it's forgotten :). Ping? :( --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University