Message ID | 20240207-s390-lld-and-orphan-warn-v1-9-8a665b3346ab@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-57326-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2587989dyb; Wed, 7 Feb 2024 16:18:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU0MxHFIS8zkpkcD59qQ7huUCz5794WYBVOIiYmi89azS9TQo0/fqB5vQaWcpMLL63D5CxuKmk9c5UpSC7+WlFo8TcT3w== X-Google-Smtp-Source: AGHT+IFVzuC64+FC6k9f72xlePf/I3YGb1PX+khMvzAirtQekOFDHl85RbUiHfHt3M3K2QZ+duTp X-Received: by 2002:a05:6122:a02:b0:4c0:2416:6fba with SMTP id 2-20020a0561220a0200b004c024166fbamr5219205vkn.7.1707351491659; Wed, 07 Feb 2024 16:18:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707351491; cv=pass; d=google.com; s=arc-20160816; b=OJ2GxcN/v7phhegydGPoHsKELQaXlDp8VLPNYiNXMjUIltjhVGUPCOk6466R4AAqZi mjhJAEgACxYscOcVMhvmF54K4pF2E7FkHA3oFLUo2Oi8O+6e53mGH3zvelYSTjH6K/OH uRAnqemSs47Vj1wM7fI5qOiwYdxm8d7OxOpe73cG4SruxkeO4LdlJLAil9y+PCPkasrL 1XwWQrYL2lSZR3f9o0t6XaN6AMUvhNV1Vto4KQRXdSduEWxC95i03ASzBnXh2x5kNMwD 0wpeAh9S1BIFbL0oIQ5Mvr4rF0SDWSG+naSSW/CgUSm2CeF30hGV/dk88faAQudWyt+0 fz/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=l8BVgx514sziwvXpB+cPsUShLNl5eOL1WztGeYT6YXo=; fh=IL/5odT3pOu++pxwFo39cHhfvl+e2zhYpcqAKN1I/tQ=; b=vgigZ+zX+1Ucef+wHK9NWtlxJjXxLHvjxbAH0MKUZlUrK1ruoUpM6q7dO+I5vmOrPT ea0UBbdlU14kv+qKj9JdY0eGMcYwG7YpfChQ6HWfCisg8h7HrnykcGBokGzVsoL/cPW/ ZYNHlK4WgZpc6prSrAK0FGFcBDKMJoTlDlZB+qduytDZVDh4BMn01CEUuiyMlT9OKdrE 6unI8bBql8PsW7Byp6xT4Z/8wA41ixh13PFZbbhKLPnlP2U481VdESjSKDKtsc3+oygI 58Jek8FTGn6K/K74FrY2z+PRfIVgHA/CBcH/d9UHtiqaprIRD2m8xRmWciAZL/8oTp2E Egmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="a+VBM/RR"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57326-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57326-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUjiGxR5Dec4E7UP6ZP2MY8CTW2N17/uRUsI6Ojh1qhIf0l3uTFbM1urdz73qKNga+rQWifcYViOiKdxIY/wVu4qG/XdQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iu15-20020ad45ccf000000b0068cbbbaa936si2464509qvb.297.2024.02.07.16.18.11 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 16:18:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57326-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="a+VBM/RR"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57326-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57326-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 71C321C22BB1 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 00:18:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E555C374DD; Thu, 8 Feb 2024 00:15:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a+VBM/RR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1772C364BE; Thu, 8 Feb 2024 00:15:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707351313; cv=none; b=lMFAbasPI3iH/uX7fW2ppsqnCFeAm10mMLzn0xtB/a8F8HjhFLH9UrmW1CLlX8B7XxaYEgdKTt6QO8igV9DTuqwmRaanaebK/RqK8snkJFC8EZyeAVs86F2D82n6NdU4RblticpwGrjq2SVRjH3DkvOntRpJF2CMsbM0OvH5FZQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707351313; c=relaxed/simple; bh=oj028p9Bfp82VhGdol8YywhGeGdWcYwVFqAjOaIyq2A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mx7wc8BP3RYChnFdrIEiew2ubNPHW2Pu92gx+ZzWZ1g3B9UnDXuZUyTghMOftYc6EjTU4i6sxGEmeLbv4Z3hA7Kps5wQOp9e1VknhJZbdAe42DG9dpR7fSdqxHf4O7Sg1njWuVGxKebZpyedTYvlwA8X0omsUV+L57CC2ivYfTc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a+VBM/RR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2533C4166A; Thu, 8 Feb 2024 00:15:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707351312; bh=oj028p9Bfp82VhGdol8YywhGeGdWcYwVFqAjOaIyq2A=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=a+VBM/RRARb8IGHNobHJ7/wCBuPUE+RNWDE7qcTDQwMhu3XRQ0JXtmMHgprj67GpT gBtGrXaStCuN/MN0u0XAmUOhxP/HIsOIykbDmm6fa1wmY16fwVq5J1gGVABP2xdAog phesGsGhOhTOuIiK4GLwwm+Rdp+ETNIcaHodPI5iAake35cjVLNrHP2Lo2n770Dji8 VCfgyCFM7N9DW3F9zNWojrQC5hymJWoJQ1yCn6jUtXMLK+TBH4RvQeqJFRxtnMme5w WzeZMqXrmKCiyHMWqBicIETCMIdNxheCpofROUn7Ypt7/P4U4lyJbcEQAWzf4tLpXx KyZ7wHdwUDqyQ== From: Nathan Chancellor <nathan@kernel.org> Date: Wed, 07 Feb 2024 17:15:01 -0700 Subject: [PATCH 09/11] s390/boot: vmlinux.lds.S: Handle commonly discarded sections Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240207-s390-lld-and-orphan-warn-v1-9-8a665b3346ab@kernel.org> References: <20240207-s390-lld-and-orphan-warn-v1-0-8a665b3346ab@kernel.org> In-Reply-To: <20240207-s390-lld-and-orphan-warn-v1-0-8a665b3346ab@kernel.org> To: hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com Cc: borntraeger@linux.ibm.com, svens@linux.ibm.com, maskray@google.com, ndesaulniers@google.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, Nathan Chancellor <nathan@kernel.org> X-Mailer: b4 0.13-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1308; i=nathan@kernel.org; h=from:subject:message-id; bh=oj028p9Bfp82VhGdol8YywhGeGdWcYwVFqAjOaIyq2A=; b=owGbwMvMwCUmm602sfCA1DTG02pJDKlHZDneq/YZ5DQ/82DhX2+QvKhZa+GrjfU3klxnbU4p8 NDqeTi9o5SFQYyLQVZMkaX6sepxQ8M5ZxlvnJoEM4eVCWQIAxenAExkz2KGP9xL1tQ/uxdurpiZ In7zlYH3p09FhheD+K2fHJLdrpd6dwrD/zB/30vGajUHP7e9SqtcVbxlyQupp7VaAYU2E29uT8n ewAgA X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790287797747316094 X-GMAIL-MSGID: 1790287797747316094 |
Series |
[01/11] s390: boot: Add support for CONFIG_LD_ORPHAN_WARN
|
|
Commit Message
Nathan Chancellor
Feb. 8, 2024, 12:15 a.m. UTC
When building with CONFIG_LD_ORPHAN_WARN after selecting
CONFIG_ARCH_HAS_LD_ORPHAN_WARN, there are several series of warnings
from the various discardable sections that the kernel adds for build
purposes that are not needed at runtime:
s390-linux-ld: warning: orphan section `.export_symbol' from `arch/s390/boot/decompressor.o' being placed in section `.export_symbol'
s390-linux-ld: warning: orphan section `.discard.addressable' from `arch/s390/boot/decompressor.o' being placed in section `.discard.addressable'
s390-linux-ld: warning: orphan section `.modinfo' from `arch/s390/boot/decompressor.o' being placed in section `.modinfo'
include/asm-generic/vmlinux.lds.h has a macro for easily discarding
these sections across the kernel named COMMON_DISCARDS, use it to clear
up the warnings.
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
---
arch/s390/boot/vmlinux.lds.S | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/s390/boot/vmlinux.lds.S b/arch/s390/boot/vmlinux.lds.S index 2bef450e84e9..806bca35e3f1 100644 --- a/arch/s390/boot/vmlinux.lds.S +++ b/arch/s390/boot/vmlinux.lds.S @@ -147,6 +147,7 @@ SECTIONS /* Sections to be discarded */ /DISCARD/ : { + COMMON_DISCARDS *(.eh_frame) *(__ex_table) *(*__ksymtab*)