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 593C73858D35 for ; Mon, 22 May 2023 11:04:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 593C73858D35 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=1684753478; bh=k0MF0C1JWdBfsmxtaqWKpbRLGBtQdgJoAlcg/OotkF4=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=QfzoJvy/1AMY5HqrM7+qa0r2BUZY1st1sSo5wSNq6I9BG87aBZE6mFgRPlxDqAMz9 dBtSlpLZ54IqfjZ4XWiRbkPqojWYYD7e9KxUG8mtEZf78aYVuLPwTyITWOIFmQKKUq zM0TAOR5tONtG5ynYHZfY+AdrKM6irnn+91UjtvM= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::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@xry111.site) by xry111.site (Postfix) with ESMTPSA id 5A5856629F; Mon, 22 May 2023 07:04:37 -0400 (EDT) Message-ID: <060f66e4ff7860b7cbff91b8ccb9cfedd39337a3.camel@xry111.site> Subject: Re: [PATCH v4 0/6] LoongArch linker relaxation support. From: Xi Ruoyao To: mengqinggang , binutils@sourceware.org Cc: xuchenghua@loongson.cn, chenglulu@loongson.cn, liuzhensong@loongson.cn, i.swmail@xen0n.name, maskray@google.com Date: Mon, 22 May 2023 19:04:35 +0800 In-Reply-To: References: <20230522013441.3074776-1-mengqinggang@loongson.cn> <3d26b5ef4aa4ec462c3232a21527424b933dd70a.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,LIKELY_SPAM_FROM,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 Mon, 2023-05-22 at 18:04 +0800, mengqinggang wrote: > For -fsection-anchors, I think it is less affected by relax.=C2=A0 Could > you=20 > please > give some special question about this? Alright, it seems I'd misunderstood -fsection-anchors with -mno- explicit-relocs. It generates things like: la.pcrel t0, .ANCHOR0 + 8 la.pcrel t1, .ANCHOR0 + 16 Not la.pcrel t2, .ANCHOR0 addi.d t0, t2, 8 addi.d t1, t2, 16 which may puzzle the relaxation pass. > On LoongArch architecture, -mno-explicit-relocs may have a higher=20 > performance > than -mexplicit-relocs for some large program. I'd consider this situation "bad" as a distro maintainer will need to decide this on per-package or even per-link-unit basis if (s)he really wants to squeeze the last drop of the performance... Is there any possibility to make both scheduling and relaxation work? --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University