From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 66D7F3858D20 for ; Tue, 23 Jan 2024 03:56:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 66D7F3858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 66D7F3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=114.242.206.163 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705982188; cv=none; b=wbbiXgHbaHWHMlf7kkmRsqEqLzHbNQEtAYWUGfiyApCs1JrBrZBGMAN20AF6euFunZAsBsKEJR4Y60WkOl+79/tdMuQN763Bn7Rp6MNNbinvDFg473dDhfvKZa15Rs0T4GYZGX7gjw6q5qsuZmUrjO3t2IcPDjN2w9PnuW+b4nI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705982188; c=relaxed/simple; bh=Cv0zSm12ggRl5AAvEpbf9BX5xiz9naP2WTPCQzwxJCI=; h=Subject:To:From:Message-ID:Date:MIME-Version; b=mHcejj0b9YIN7tGniWCXBEl/ixSmtbFFe/iKGnUcJX/t1N7bQeDSauyL8XBwgZ1+mAio9u+qP2qmeCSkMDlwknp9grFeMD/nNLedfqPRvmxw9TwMTYhyBqLAGDgo5E3NKDKwgwwrecXK9HR4LyGL8uDQecfCiDM9ZofCq7BPKJQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from loongson.cn (unknown [10.20.4.171]) by gateway (Coremail) with SMTP id _____8DxWPDmOK9lJAEEAA--.16111S3; Tue, 23 Jan 2024 11:56:22 +0800 (CST) Received: from [10.20.4.171] (unknown [10.20.4.171]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxTs3kOK9lRoUTAA--.20792S3; Tue, 23 Jan 2024 11:56:21 +0800 (CST) Subject: Re: [PATCH] gas/NEWS, ld/NEWS: Announce LoongArch changes in 2.42 To: Xi Ruoyao , binutils@sourceware.org Cc: Nick Clifton , WANG Xuerui References: <20240122191612.1678966-1-xry111@xry111.site> From: mengqinggang Message-ID: <4fb0b073-693b-521b-6060-f800dfe68403@loongson.cn> Date: Tue, 23 Jan 2024 11:56:20 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20240122191612.1678966-1-xry111@xry111.site> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CM-TRANSID:AQAAf8AxTs3kOK9lRoUTAA--.20792S3 X-CM-SenderInfo: 5phqw15lqjwttqj6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj93XoWxZrWrWryfury7Xw4kCr1xZwc_yoW5uw45pa 9xCan8tFWUWrWxuwnxtw48uFnIgan5GrW3Gr4Iq34UCas8Arn7KF47t3Z0ka4DJ393Cr1a qryvq347WF98ZFgCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUvFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE 14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCYjI0SjxkI62AI1c AE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8C rVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtw CIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x02 67AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr 0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxU25Ef UUUUU X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_STATUS,KAM_NUMSUBJECT,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 在 2024/1/23 上午3:14, Xi Ruoyao 写道: > The change is self-explained, no more commit message :). > > Co-authored-by: WANG Xuerui > Signed-off-by: Xi Ruoyao > --- > > Nick: this is obviously for 2.42... Sorry for sending it after the > branching, we were just too focused on "code changes" :(. > > gas/NEWS | 31 +++++++++++++++++++++++++++++++ > ld/NEWS | 11 +++++++++++ > 2 files changed, 42 insertions(+) > > diff --git a/gas/NEWS b/gas/NEWS > index cf4e8ff7c95..8078a8dd2af 100644 > --- a/gas/NEWS > +++ b/gas/NEWS > @@ -66,6 +66,37 @@ Changes in 2.42: > * The BPF assembler now allows using both hash (#) and double slash (//) to > begin line comments. > > +* Add support for LoongArch v1.10 new instructions: estimated reciprocal > + instructions, sub-word atomic instructions, atomic CAS instructions, > + 16-byte store-conditional instruction, load-linked instructions with > + acquire semantics, and store-conditional instructions with release > + semantics. > + > +* The %call36 relocation operator, along with the pseudo-instructions > + call36 and tail36, are now usable with the LoongArch "medium" code > + model, allowing text sections up to 128 GiB. > + > +* TLS descriptors (TLSDESC) are now supported on LoongArch. This includes > + the following new relocation operators: %desc_pc_hi20, %desc_pc_lo12, > + %desc_ld, and %desc_call, and the la.tls.desc pseudo-instruction. > + > +* TLS LE relaxation is now supported on LoongArch. New relocation > + operators %le_hi20_r, %le_lo12r, and %le_add_r are now available, with > + la.tls.le now making use of them. la.tls.le still expands to the old instruction sequences.  Gcc generates new TLS LE instruction sequences when -mexplicit-relocs=[always,auto]. > + > +* Add support for LoongArch branch relaxation: a conditional branch with > + destination out of its immediate operand range, but still within > + a "b"'s range, is now assembled as an inverted branch and a "b". This > + works around the unreliable branch offset estimation of the compiler > + when .align directive is encoded into a long NOP sequence with an > + R_LARCH_RELAX by the assembler. > + > +* Add support for encoding three-expression .align directives on LoongArch > + with R_LARCH_ALIGN. R_LARCH_ALIGN only supports the first and the third expressions of .align. > + > +* Symbol or label names in LoongArch assembly can now be spelled with > + double-quotes. > + > Changes in 2.41: > > * Add support for the KVX instruction set. > diff --git a/ld/NEWS b/ld/NEWS > index c3ebe320e5e..a5a5b9faee2 100644 > --- a/ld/NEWS > +++ b/ld/NEWS > @@ -29,6 +29,17 @@ Changes in 2.42: > --enable-error-rwx-segments=[yes|no] configure options to set the default for > converting warnings into errors. > > +* On LoongArch, various linker relaxation bugs are fixed; the most notable > + of which is BZ 30944 (incorrect .balign semantics). > + > +* On LoongArch, the LoongArch ABI v2.30 (LoongArch ELF psABI v20231219) is > + now implemented. This includes new relocation types, and changed > + semantics for PC-relative relocations handling the higher half of 64-bit > + offsets. > + > +* On LoongArch, link-time TLS optimization and TLS relaxation are now > + supported. > + > Changes in 2.41: > > * The linker now accepts a command line option of --remap-inputs