From patchwork Mon Jan 22 19:14:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xi Ruoyao X-Patchwork-Id: 190352 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2782886dyb; Mon, 22 Jan 2024 11:16:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhIml1rSTKg+61IsJLuTY2zyC9Ty80bKGazRdeRzEKuDZq8TJ4NouxG/Ga3wSR7lPgchsQ X-Received: by 2002:a05:620a:167a:b0:783:9999:85 with SMTP id d26-20020a05620a167a00b0078399990085mr3142614qko.42.1705951008336; Mon, 22 Jan 2024 11:16:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705951008; cv=pass; d=google.com; s=arc-20160816; b=U5KONOWgxXY7bAhpAhmIFPWZeLhTpkClMmen8lhV9+phU+h/p8ffAX2s/M9enqnLbJ H8R7c3odRPgNH2pMwcfSMtmgeg2QLI59wN5wYTm6FyLJyUJ03DfJdN+I8xWm5ZGhChwz tbU21kHLMRbVkLQ5ztIS5o2w4szdYN195PPhcPZBrExZyDqmpjFbFGYebxhcQza4gTHR oBDHSzZWamolsoQE/A0/zgSeqEle8gmIbYCdls3h9L4O0vSPgK4SOf5ftB04K/A/56bI +vL0r6za2qFj6Rz5yd7GVFLHoGZsL8OY6erXXeBulKE/Rr5LHEoUx4U0nzsb4kgEevtv GJhw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=dayqdbe1VfdDn/8m0OQQk0OEPP+tQ/XNs9yjaus+kaA=; fh=dQ7C+iDfz28yZInczHn7xoYzJU0ARmqPsoLgNlzF5ws=; b=YRkxIAXryz8nEGZJuN5TmiCmohIxUJSP5E53pcFJRGN+HYUDe5HWpjJyFRbXrhbirj TGjVl6qQPq/uxQXQymwv0nHadjIN+yTr9PCZ6/qfQpHJWUPwTKwSqj9TyG1I1k5fZIEc Ez0ksf/g9TcKTIDcd3CF3zFnyht/yidsHGUp6KLu19Ba7ey5WoyEFgps/pBaGLD/BO+i 449SMZIW4x6iveRTFTAmNTisaYSbvmFaO8zaxELY8z0w0wPT+YDcBW4RpkyYd6e9YlcI 3rxEM6OnzFNmEPwG0HfmEeANTPumBRkW+/6OtS4leLYtesasmogKWa3yAgJZJ1OS//vu preQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=JxDcDphs; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id q12-20020a05620a0c8c00b0078329ed2894si5892951qki.525.2024.01.22.11.16.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 11:16:48 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=JxDcDphs; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0FCCE3858422 for ; Mon, 22 Jan 2024 19:16:48 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 2D4803858D3C for ; Mon, 22 Jan 2024 19:16:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2D4803858D3C 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 2D4803858D3C 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=1705951001; cv=none; b=BrMahyUI4+wRbPCEOfOQBkwo4EqgyTQ5D8tmYL7PE8fgoPnKdZ4lCuZRtrDRzGyxzc7gCGkVjbfAeWOQg+SLkf4NsNpkbY1T2bMX/Rf35FzmJPO5e8Um2+uEeAE6WP6kvvAeXnt0aqXMKEwAM35KlY9MmJFwKAE7EUMMGHpHxx4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705951001; c=relaxed/simple; bh=OBkBvSsP4Xqgwz4KgKo7nHrbQJ0jvYngbVvX+w1s/8o=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=FgdnXpSBfJ0j9S9uD8wiQ1O/Xvy3Kj6xRny8OUQtyqwZAKPb5JvVgT3+RRPB+9DNC9BnMoif/KOnkv/ICbZgm2AWjZq+nTgxUkAfzyz9qneRE8i5HUCBj0wQLc1ANm6vnP79yxPeKd2DLpY6gBVh+HHmHRF3n3WwvWx5ekAeFMw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1705950996; bh=OBkBvSsP4Xqgwz4KgKo7nHrbQJ0jvYngbVvX+w1s/8o=; h=From:To:Cc:Subject:Date:From; b=JxDcDphsFUNNwL05qgcMZX83agZfPIRZftYCta+phkjRUWS/ROWQEaQW//y/SIPFv E+uiviZtA4e5lXvtn3vb6oa786OQhYaFH3ryPPvEw0bmYVnIbY8glIsZtua/riTZQ+ uWn2r0xm2irRB6+fLRl24zWx8pVuEIilaGbP8KOQ= Received: from stargazer.. (unknown [IPv6:240e:358:119a:ce00:dc73:854d:832e:2]) (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 E416F66A74; Mon, 22 Jan 2024 14:16:33 -0500 (EST) From: Xi Ruoyao To: binutils@sourceware.org Cc: mengqinggang@loongson.cn, Nick Clifton , Xi Ruoyao , WANG Xuerui Subject: [PATCH] gas/NEWS, ld/NEWS: Announce LoongArch changes in 2.42 Date: Tue, 23 Jan 2024 03:14:03 +0800 Message-ID: <20240122191612.1678966-1-xry111@xry111.site> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 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 X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788819284457097892 X-GMAIL-MSGID: 1788819284457097892 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. + +* 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. + +* 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