Received: by 2002:ac8:1418:0:b0:3ab:920c:4c8b with SMTP id k24csp441052qtj; Thu, 19 Jan 2023 08:15:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXub2kfE6TYLeAjuayDEix7Z3wcLshQr6N6xRf6Sq4EVIWJr9bx4d5BCZnMmM8jOHjv3AJ7D X-Received: by 2002:a17:90b:80f:b0:220:bad8:b4e7 with SMTP id bk15-20020a17090b080f00b00220bad8b4e7mr11798685pjb.7.1674144939695; Thu, 19 Jan 2023 08:15:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674144939; cv=none; d=google.com; s=arc-20160816; b=wy71k8CAByr5A7JgU5CtHPdgkynPVjcfLsXx/ftDt16y+y8mRCq5A/+BTZtNJAwlCu uXX04XdZQ/xxcL/t5E1qvOtjoJur3Z6h5yOMZye2bcidDGiRFfmAZZ+Wth4ZEIg3JpbY hUIXJPuf16VQ5H2hrvhq+7GA/jmHv+hZfPzyNgJsa5lnu2Gs+nHAPIBU9jvZw4LGcTjz leVPX4VgSHkNNH8avrs5RtJWW2FPume8EFUBYtn3dbSs2R697O9t0Lm7rUGQQhklJnLC UvyVHUlAYoAi4034GBwqHX+4Kjvgi3DN0/N8XVqIdI2Vc2o3Kv078d5mfl0+senVSwwK km6w== 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 Return-Path: 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.15.34; Thu, 19 Jan 2023 08:15:39 -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 + 45 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 ); 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 ; 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 ; 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 To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Masahiro Yamada , Kees Cook , Nathan Chancellor Cc: Conor Dooley , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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