Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp582651rdf; Fri, 3 Nov 2023 09:01:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRmcWZWryO75JnUGsxV5zqGroj5vuFkndP6mzyhTmM5kN9nlAYnhn8ivPMa819vYfNRLyK X-Received: by 2002:a05:6e02:3088:b0:359:5b0:ee3b with SMTP id bf8-20020a056e02308800b0035905b0ee3bmr24348386ilb.17.1699027266087; Fri, 03 Nov 2023 09:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699027266; cv=none; d=google.com; s=arc-20160816; b=JDvZRuQm+8z9rF9KXPE7VcdPqLEoKnqVUEu1pQEC3Z02rIJ9RKDwVvaVDxWWN09vOm 7q4uzX2MXL62OPS5KG1rw0ZUIE46P+Jq/+ODJId87/c44/+L4739CkansjTwHTzzsLE+ UtlO47NoatSsZWdVh4fpNCSlozrkwVTaR0bjut7tjTD0UJ24D9Nf/97MSGjIqg2UXQzr vrafXCIBsB/atVyobL1e0Y+oX4qAdJ5iDlM3rHSv7IwF2B2viH7gj6SuoxwwepkiSeHs jLmVGpFbOn1mb/wfDzliJGZI9JN1pJe9ny4XRWzUsoIY7TcqMCGNSqj8PJ4ISk7eyggT Yo8g== 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=gvLWhEw7SM5dv7/sZHKu2/GD/RhwYg6D+UM1uydR/ZY=; fh=NvW3CO3GtIHRKW4YFObS4dEX0yL9bbz2APezTtyZGhQ=; b=0Q0qKSq/tPyb97oE6C/zaKQA3d63Z/lwbvpaaZED0Jqq6JmWvke2UzJSwlJAYXoodY FSRlZdjYWSaZJJkepiB4n7duj9CAdSGDJrMYiOOKtYkdJqmc1+hKYVwPrE+rFTH1NcSp BPjzQklj0zXVzgWA1VJIBxzP+7FuOTHytNN9U2/XJnoIyHZPCiNA5X1H1VvK2dfdWZdc UXrMNuxS6nPxCbpEbV5GIrl/4Rn0atmrzZVo06CvIvlMjkRDgn6I1v6zUkUJ8E/qal+A NY1qpwu3Vr8pEb90R6gLUgs9MUuF6CdQJHa0Zdz2RUw7aKZ7OJVxCGOJ0XZ0G5Vj/b2G 91yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ck20-20020a056a02091400b005b99ea68841si1884392pgb.581.2023.11.03.09.01.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 09:01:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 9F36C8317493; Fri, 3 Nov 2023 09:01:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344868AbjKCQAx (ORCPT + 99 others); Fri, 3 Nov 2023 12:00:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343945AbjKCQAw (ORCPT ); Fri, 3 Nov 2023 12:00:52 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DFF4191; Fri, 3 Nov 2023 09:00:49 -0700 (PDT) X-QQ-mid: bizesmtp64t1699027236t5ijv5ky Received: from main2-ubuntu.tail147f4.ts.net ( [202.201.15.117]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 04 Nov 2023 00:00:33 +0800 (CST) X-QQ-SSF: 01200000000000B06000000A0000000 X-QQ-FEAT: rZJGTgY0+YOXiDRtSv5jrBH+Ok8Gp19fhcj4KioUSMpuqQklo5ZZQc/JPJ8NP EtrPZ1izysnRKGJpccJps5x7PACRlaGOgqrbhQsoXPYIL0wptOzTr59TlmxVaci9hDwmWW3 p2AG5vAakwXzlGOvAVJVj+6geI4kiy35fnAl8Hxgjur7eOzsHK3fr/I5H8UeJZfgM66PbGn yeYjqTHLgymXpyzEuYFaXxOuqvZ/uCI5ZmMmOhTzMnqvs5W/vD7crDXrQQkhlJGtCD99gYw TlsX5JstKOh466iu7/6cBHsznx3S3ZdcSo34kwI/IMvXXT09A715opfHEEVuc05iI+uAU/L 64Ij+YmTR0MwCKVFG9rPTnOMLXFsQg6LeXI01q9jVrDUx/zPUETEnoZ/zd554YXkD/vc5qy X-QQ-GoodBg: 0 X-BIZMAIL-ID: 8259172485907225114 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 07/14] DCE/DSE: add HAVE_SECTION_NO_KEEP_SUPPORT option Date: Sat, 4 Nov 2023 00:00:31 +0800 Message-Id: <494854689a6f6f91da151ae4bd9a7a6132092271.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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Fri, 03 Nov 2023 09:01:02 -0700 (PDT) Once there's SECTION_SHF_LINK_ORDER_SUPPORT or SECTION_SHF_GROUP_SUPPORT, there won't be any orphan section and won't need KEEP() anymore. 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 4296c97cfc84..9834dbb0ddae 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1462,6 +1462,11 @@ config HAVE_TRIM_UNUSED_SYSCALLS depends on HAVE_LD_DEAD_CODE_DATA_ELIMINATION default n +config HAVE_SECTION_NO_KEEP_SUPPORT + bool + depends on HAVE_SECTION_SHF_LINK_ORDER_SUPPORT || HAVE_SECTION_SHF_GROUP_SUPPORT + default y + config HAVE_SECTION_SHF_LINK_ORDER_SUPPORT bool depends on AS_IS_GNU && AS_VERSION >= 23500 -- 2.34.1