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 3359F3858D28 for ; Fri, 8 Apr 2022 23:25:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3359F3858D28 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 00FCB6651A; Fri, 8 Apr 2022 19:25:37 -0400 (EDT) Message-ID: Subject: Re: [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: Sat, 09 Apr 2022 07:25:36 +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.0 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, T_SCC_BODY_TEXT_LINE 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: Fri, 08 Apr 2022 23:25:41 -0000 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 wi= th > > > > CONFIG_IA32_EMULATION disabled. > > > >=20 > > > > gold/ > > > >=20 > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 * testsuite/pr17704a_tes= t.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 coun= terpart. > > >=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 Gentle ping again, in case it's forgotten :). --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University