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 31696385DC05 for ; Fri, 6 May 2022 15:04:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 31696385DC05 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 DF0B766588; Fri, 6 May 2022 11:03:57 -0400 (EDT) Message-ID: <7520a336117da569ff4924bc129d2310081812e4.camel@mengyan1223.wang> Subject: [PING^3 PATCH] gold: don't invoke IA32 syscall in x86_64 assembly testcase From: Xi Ruoyao To: binutils@sourceware.org Date: Fri, 06 May 2022 23:03:56 +0800 In-Reply-To: <6f7688d519524dd2d5dc5b10b51244ca40865760.camel@mengyan1223.wang> References: <84f7610cf64aa40e838a8289100517b2318d8bc6.camel@mengyan1223.wang> <6f7688d519524dd2d5dc5b10b51244ca40865760.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, 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, 06 May 2022 15:04:01 -0000 On Fri, 2022-04-29 at 00:15 +0800, Xi Ruoyao wrote: > 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 kernel= s > > > > > > with > > > > > > CONFIG_IA32_EMULATION disabled. > > > > > >=20 > > > > > > gold/ > > > > > >=20 > > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 * testsuite/pr17704a= _test.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 = counterpart. > > > > >=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 :). >=20 > Ping? :( Ping. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University