From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 3E8943858D37 for ; Sun, 4 Sep 2022 02:51:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3E8943858D37 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1662259902; bh=Q7xzBTbshu5DzdJOvja7I4GoArbJ7uDZV+q5J269mNI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Op9kpXmjSzDh78kKCSA9bG2o1ExXpw2Sj811yzTF1qquLjl/5+WHS01jIyXbvpo5U uRodCfjDt0IBx1TjcbxJp70Ch5hgGXIZKxdVnBxoj6UhAvyeIbP4c2IhHX/VT8bX5K JrKzSn1gF5pYYuZqDT81FkAPRuzeZPO5rq1jisgo= Received: from [IPv6:240e:358:1104:1500:dc73:854d:832e:4] (unknown [IPv6:240e:358:1104:1500:dc73:854d:832e:4]) (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@xry111.site) by xry111.site (Postfix) with ESMTPSA id 7816F65C26; Sat, 3 Sep 2022 22:51:38 -0400 (EDT) Message-ID: Subject: Re: [PATCH] LoongArch: add -mdirect-extern-access option From: Xi Ruoyao To: Lulu Cheng , gcc-patches@gcc.gnu.org, liuzhensong Cc: Wang Xuerui , Chenghua Xu , Huacai Chen Date: Sun, 04 Sep 2022 10:51:31 +0800 In-Reply-To: References: <20220901105412.42242-1-xry111@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.45.2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD,LIKELY_SPAM_FROM,PDS_OTHER_BAD_TLD,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Sun, 2022-09-04 at 10:26 +0800, Lulu Cheng wrote: > If the above modifications are not added, the function call is: >=20 > =C2=A0bl %plt(test1) >=20 > now is : >=20 > =C2=A0bl test1 Regarding "%plt(...)", in the binutils code: /* For compatible old asm code. */ if (0 =3D=3D strcmp (op_c_str, "plt")) btype =3D BFD_RELOC_LARCH_B26; Link: https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dblob;f=3Dgas/con= fig/loongarch-parse.y;h=3D8704687706df50aa15aff05f97e4560d7ec6fa23;hb=3Dref= s/heads/master#l131 Zhensong: does "old asm code" here mean we should remove %plt from "new" assembly code, i. e. stop to print %plt(...) in GCC completely? --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University