Message ID | 20230119155417.2600-6-jszhang@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp416250wrn; Thu, 19 Jan 2023 08:15:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXvd9cQh74z2DRJipuVM18JVoAQ/yutmsoINCOep4tW/B5lL1BPnpmVb0cEgGStrEyMQkkyb X-Received: by 2002:a17:90a:8b92:b0:226:9ee5:9f2c with SMTP id z18-20020a17090a8b9200b002269ee59f2cmr11359997pjn.11.1674144909790; Thu, 19 Jan 2023 08:15:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674144909; cv=none; d=google.com; s=arc-20160816; b=TEae0n05/zqHsSEh+PpUMTzqQNX7Nf9mNg8WNTdzjG7j7MiMwHToytOSIIjfvk7Dcp 0NEm0xFc7dLVqGTJaNe+gbj9tss3y9mhOjNU9xPKPuyh2MZ3Y4qE6450kGuRpt03Elne wGHa0e0jELiEl8UclOjGcrz8oTTrCBkSZDSQ6PwF9QaVmKZUuJfBseX9MGXrrFm8wj7l rkR9a/7jImxFKXFBmwIe6/3Dkd2VPCcvNlV4p78TUNW0APcG+F4w2jmAzYrZm/+mukz8 aWtPUlXJQ/vYI4LPzqBi94QX6Uh1jzW/4+Jb4895y0miqGF8ujpFZliFzkqV0cS7xUNh q9og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jmf/trxlcbgM1zY6h2uewM3Ge4UA7vvakcir5SnuKZM=; b=09r5XMcTmsWy00/y9I98S650qXYTKQR/pFkoqxYKIZKv9ca02Ueg1yQjR0Wz5aOG/G 4FWPylTW6wFmcRKpjuaJVpYQAkorzBX8U1sRnbG3VaZiQjbt+K49Wk8qymW3wDGVQElq uLESIrFWDVhXQQcFhAhdARhxTfm6+57puRlayIgkRPfEAV6WdvDfIOvbqgW3yw+hU3+H XGAIp0P/nUEE4fiA9OZcKC0Ee2QLbl/oedbhs1BUTv/b+ytkbo9WY9d41A2AbpkDViJU kIXStm9ZfSoJdPeBBHp8xM2LUvnz3wm7+cTwRQ8wjpCBAVMDqWBA7THE+0QuoQgfu43D PQfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KOOU8bw3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rj12-20020a17090b3e8c00b00229eea49e3csi1533963pjb.139.2023.01.19.08.14.57; Thu, 19 Jan 2023 08:15:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KOOU8bw3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230226AbjASQF1 (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Thu, 19 Jan 2023 11:05:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230161AbjASQEv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 19 Jan 2023 11:04:51 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F1BD69222 for <linux-kernel@vger.kernel.org>; Thu, 19 Jan 2023 08:04:49 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C13E461CB7 for <linux-kernel@vger.kernel.org>; Thu, 19 Jan 2023 16:04:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31355C43398; Thu, 19 Jan 2023 16:04:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674144288; bh=Q3aUPyCmgVUYIBmI6uVtAlDrofg5WEVa3xPWnM7xs/M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KOOU8bw3d6SuGu0wcCX7KDP4dmpC5+XBCZ2OljXy1baMW85lsj4+IqWljAFyoSWBl ppX4QqkJxaSDD0HfCrhXdJhHdHNiJa2wGfyyV1QOju+OJf2+ZkEsMUd6PnsHRUvRif pbfBKnuYGROfs91MqXhZAJeoqCFjbscAlGdNGsS0v9mUv9NxUg+tV1MdzdHfEpWLHT zTv8VTs/c1/0c1jQl4JNc2fmMLxE/IWL1jJJRNdZbxYZ7AAcS9PCCA/DnSjQecu6E4 Sv8jnLCBxM8fMikux4xClrENpdNhnm0ZuSDTp0EqingpaCJSR2sQr7mOwAgsIQ3reB IaPMMTaUwCudg== From: Jisheng Zhang <jszhang@kernel.org> To: Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Masahiro Yamada <masahiroy@kernel.org>, Kees Cook <keescook@chromium.org>, Nathan Chancellor <nathan@kernel.org> Cc: Conor Dooley <conor@kernel.org>, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/5] riscv: select ARCH_WANT_LD_ORPHAN_WARN for !XIP_KERNEL Date: Thu, 19 Jan 2023 23:54:17 +0800 Message-Id: <20230119155417.2600-6-jszhang@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230119155417.2600-1-jszhang@kernel.org> References: <20230119155417.2600-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755468172783850804?= X-GMAIL-MSGID: =?utf-8?q?1755468172783850804?= |
Series |
riscv: improve link and support ARCH_WANT_LD_ORPHAN_WARN
|
|
Commit Message
Jisheng Zhang
Jan. 19, 2023, 3:54 p.m. UTC
Now, after that all the sections are explicitly described and
declared in vmlinux.lds.S, we can enable ld orphan warnings for
!XIP_KERNEL to prevent from missing any new sections in future.
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
---
arch/riscv/Kconfig | 1 +
1 file changed, 1 insertion(+)
Comments
On Thu, Jan 19, 2023 at 11:54:17PM +0800, Jisheng Zhang wrote: > Now, after that all the sections are explicitly described and > declared in vmlinux.lds.S, we can enable ld orphan warnings for > !XIP_KERNEL to prevent from missing any new sections in future. > > Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Warnings that the automation picked up are now gone in v2, thanks! Reviewed-by: Conor Dooley <conor.dooley@microchip.com> > --- > arch/riscv/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index e2b656043abf..335e0c45cced 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -46,6 +46,7 @@ config RISCV > select ARCH_WANT_FRAME_POINTERS > select ARCH_WANT_GENERAL_HUGETLB > select ARCH_WANT_HUGE_PMD_SHARE if 64BIT > + select ARCH_WANT_LD_ORPHAN_WARN if !XIP_KERNEL > select ARCH_WANTS_THP_SWAP if HAVE_ARCH_TRANSPARENT_HUGEPAGE > select BINFMT_FLAT_NO_DATA_START_OFFSET if !MMU > select BUILDTIME_TABLE_SORT if MMU > -- > 2.38.1 >
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index e2b656043abf..335e0c45cced 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -46,6 +46,7 @@ config RISCV select ARCH_WANT_FRAME_POINTERS select ARCH_WANT_GENERAL_HUGETLB select ARCH_WANT_HUGE_PMD_SHARE if 64BIT + select ARCH_WANT_LD_ORPHAN_WARN if !XIP_KERNEL select ARCH_WANTS_THP_SWAP if HAVE_ARCH_TRANSPARENT_HUGEPAGE select BINFMT_FLAT_NO_DATA_START_OFFSET if !MMU select BUILDTIME_TABLE_SORT if MMU