Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp584141rdf; Fri, 3 Nov 2023 09:02:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3+x5Rgc/SKZw+cxiqnsq1UCNNYXU224O3xeA5fK2C187Qj+TEXc49UywL/8a948qQA10B X-Received: by 2002:a05:6a00:1ac8:b0:6c3:78a4:223 with SMTP id f8-20020a056a001ac800b006c378a40223mr1726938pfv.18.1699027347667; Fri, 03 Nov 2023 09:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699027347; cv=none; d=google.com; s=arc-20160816; b=Dya7meCt2p8UYFiyEQmbCvuwW8dnDnqNfY4jKtHoHLZMldsEA8HGoka7SoHWH5elTs hUbBjRqasfjPFg9WpXtyFS05bmoVLpNnqFvTqb5Vpn5ggc4Tspco9MmLnOpK9yJlB0FK GUOEJy4POOPkBnqhl9uLEAb0n1JYrZhZLymNfKv3nQ8J655Lp0UFL6tnezLtBe4W4uzy Dpie7DP8tpfS4qimMsmv/qavhS6bBA4Alv97Vy7O0iQ7JbxrBU1vbkRwmC04OI8MmvXL EGddb6MOQ8lqgQja/k6ZeISQkUtn4JSUEVtRycFg8y9fLtC3JfTstOwjr+rAKhcXfP6d jwEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=v3f5V3UzZx1u2tROxoK6jpV+g0ol0tuHDDJOavpab3U=; fh=NvW3CO3GtIHRKW4YFObS4dEX0yL9bbz2APezTtyZGhQ=; b=sBPaAWlXeeipov75NsflfWsmH7xFdXRoE1B+9dwoHjXgXJp8txKvFEpjtCrcnBA2hs s3Y3yZJGKfKa1n2voBvaaBI+BdfydSf7Z6uxkl2XFACny42kabFtOP0C+DYRAbuBVS+O ey3C3s3lMDSKIrGWvNCguoDlRPJJub6PAH4sMYVIBoiXJcxweVZzy0TYc5SxcCpBaeGz 6H0SxT1MMhJpV5DVlP/fxZ+jwM63Fet3OkGK2Eogjs6RyIuUpbKu8MwINM/+1g0DwqXI eAtqGDJMKdBvmtPWZsEH1Cb6Un0x2ShsaxYEYx8kFkfYufPnf1QCPgq36KunWlzmnr0l FXhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id u13-20020a056a00124d00b006c33c8497b8si1769396pfi.170.2023.11.03.09.02.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 09:02:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6D86980747AC; Fri, 3 Nov 2023 09:00:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344660AbjKCQAj (ORCPT + 99 others); Fri, 3 Nov 2023 12:00:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343945AbjKCQAh (ORCPT ); Fri, 3 Nov 2023 12:00:37 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 561331BF; Fri, 3 Nov 2023 09:00:33 -0700 (PDT) X-QQ-mid: bizesmtp87t1699027218tobnpga2 Received: from main2-ubuntu.tail147f4.ts.net ( [202.201.15.117]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 04 Nov 2023 00:00:15 +0800 (CST) X-QQ-SSF: 01200000000000B06000000A0000000 X-QQ-FEAT: +ynUkgUhZJkQaK3UoZkl8UFfBrmOfnK/yegytHp4rc1pb7b3un2ZnJljIAZmQ SyXnHa++l4m7fRjBIwpFo2yvoE/z+Ce3xG96JEz4TUS94+884spbt6QK0ijO0pys/0ZRtXT yTJ4KdwcAqHHm5OmVSBQkAf2mXr2BFgZ8g576cDxArslhY/NINryQd/xWCqsDWIMikhIK5H F80QRPBTraDKtfwcPifb2vihwGdJnwe9t6tWh5K+jA32jgVR2NAE3gNY43CdkZKiUzIK/a2 2z0Yjtc8JZajCom/XHmuU5CGRQIrP77qUPwshGoOPHCfrSCD//QjBQ3x/AqijADYI8wvpru bFuICpJ75TWkL/kTNaxMRL/UNMNcWL/Kyk4wkY2UyFKdKCjwzNjoUiJ1OI76g== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 8486065313594138101 From: Yuan Tan To: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-riscv@lists.infradead.org, luc.vanoostenryck@gmail.com, linux-sparse@vger.kernel.org Cc: linux@weissschuh.net, palmer@rivosinc.com, paul.walmsley@sifive.com, paulburton@kernel.org, paulmck@kernel.org, tim.bird@sony.com, tsbogend@alpha.franken.de, w@1wt.eu, tanyuan@tinylab.org, i@maskray.me Subject: [PATCH v1 06/14] DCE/DSE: add HAVE_SECTION_SHF_GROUP_SUPPORT option Date: Sat, 4 Nov 2023 00:00:14 +0800 Message-Id: <04271c1f3a4c3d369310146faefc0d05144276e9.1699025537.git.tanyuan@tinylab.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 03 Nov 2023 09:00:42 -0700 (PDT) SHF_GROUP requires ld >= 2.36. LLD supports SHF_GROUP too, but it does not support riscv HAVE_LD_DEAD_CODE_DATA_ELIMINATION. Therefore, I haven't tested the minimum compatible version yet. Signed-off-by: Yuan Tan Signed-off-by: Zhangjin Wu --- init/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init/Kconfig b/init/Kconfig index 1ef5b19918e5..4296c97cfc84 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1467,6 +1467,11 @@ config HAVE_SECTION_SHF_LINK_ORDER_SUPPORT depends on AS_IS_GNU && AS_VERSION >= 23500 default y +config HAVE_SECTION_SHF_GROUP_SUPPORT + bool + depends on AS_IS_GNU && AS_VERSION >= 23600 + default y + menuconfig EXPERT bool "Configure standard kernel features (expert users)" # Unhide debug options, to make the on-by-default options visible -- 2.34.1