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 1F8D43858409 for ; Tue, 23 Jan 2024 11:13:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1F8D43858409 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1F8D43858409 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=89.208.246.23 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706008431; cv=none; b=K9BV3Y4isfL0nefGEIbM1mu6G8lp8XhytPptqcDxzaEuvC08BfQZIqgh5+TJEQ2jOF+FFO722T7d+LzIgZ0Q0Kvcovz1++0D7EUK2KnusyJ074KhSKJAsco5EBCzbjD/Imni4imGAoTP8uVbgajCshLJgPHcE2ARGQnBqOd8j2I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706008431; c=relaxed/simple; bh=4ZE3rwvzPKxCbTmGntn3Xp43sy2M8piLoBkRxw8wIrY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=QxI8WIzCSYu+V2+ahxTHpSltGNtsOZQFPyR/kUQpFnC/qbBbZwDPZR4my9bdva862pa3gKvz+d7be/A6O35Q0qhxuD+Lj7ieTRnj968nyX2/XrFMNkuCWWHBeHVpcoaACoAtcOVEaP8Pa0FCbn8yBc02ckXslAnfGRgST8KaRvQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1706008422; bh=4ZE3rwvzPKxCbTmGntn3Xp43sy2M8piLoBkRxw8wIrY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hNLJg3laadgiR/w0jcaBsxYwGuQe+ANTk+JH/sHk7rIbxwZoa448o955tvk/I1uhn inzO8M1TOLoKxfsTK7jSgFrWfAtTqUlb9jvwuZMP6ObJdPI+IYvuB3q9YFhyG24mmQ JfUfIeEl6LHIdfYeM/HkW7tYIxDYYvQGvdvRU0+A= Received: from stargazer.. (unknown [IPv6:2408:8471:1007:e81f:cd5c:87ba:f9ec:e5d1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 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 E660A66C67; Tue, 23 Jan 2024 06:13:37 -0500 (EST) From: Xi Ruoyao To: binutils@sourceware.org Cc: mengqinggang@loongson.cn, Nick Clifton , Xi Ruoyao , WANG Xuerui Subject: [PATCH v2] gas/NEWS, ld/NEWS: Announce LoongArch changes in 2.42 Date: Tue, 23 Jan 2024 19:12:16 +0800 Message-ID: <20240123111325.36166-1-xry111@xry111.site> X-Mailer: git-send-email 2.43.0 In-Reply-To: <0999dbf2-c656-4b5e-8f6c-5424a21a3fc6@redhat.com> References: <0999dbf2-c656-4b5e-8f6c-5424a21a3fc6@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_NUMSUBJECT,LIKELY_SPAM_FROM,SPF_HELO_PASS,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: The change is self-explained, no more commit message :). Co-authored-by: WANG Xuerui Signed-off-by: Xi Ruoyao --- v1 -> v2: - Do not falsely claim la.tls.le supported relax. - Do not mention 3-operand .align directive support because it only supports an empty 2nd operand with a warning as at now. gas/NEWS | 27 +++++++++++++++++++++++++++ ld/NEWS | 11 +++++++++++ 2 files changed, 38 insertions(+) diff --git a/gas/NEWS b/gas/NEWS index cf4e8ff7c95..d717a430127 100644 --- a/gas/NEWS +++ b/gas/NEWS @@ -66,6 +66,33 @@ 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. + +* 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. + +* 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 -- 2.43.0