Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp651720rdh; Wed, 7 Feb 2024 16:19:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUq7PIP7iBV3Ja+zBQ2YZ6MsBEewOqB0lxHjEYL4uABEvwAj3JhJZGSzWRXjrBl2aplpSuFiL29AU76nRS6vgQdNWPDhxPChgJhL0pkAQ== X-Google-Smtp-Source: AGHT+IHsZjRyVjeBy258WBJjK821cVciEDtNgPXGGK9UyuudUII1RMC3KeKkABApblw4LSQgV6YO X-Received: by 2002:a17:903:40c5:b0:1d9:8b58:c9f1 with SMTP id t5-20020a17090340c500b001d98b58c9f1mr8101070pld.6.1707351544084; Wed, 07 Feb 2024 16:19:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707351544; cv=pass; d=google.com; s=arc-20160816; b=M5YiQ6gMWzO8Tnb9KWW/XuJscUOzTGPvH7qiYa3ghyIVXakCoQ9aNHSyXlGc3MMqHV d0aW9XQQP1VsUuIl4a2Op8mrPxAWejS0VXCoWFGVZVommg6GTUzIFG3UGvm2CmYshAGi KLJz4rAjs/88X/INc7eL0lRfO5E4lMiThoiudlMed3BUQ+1r8I8PzwUmtCedrEyhPnM0 2/lfxjoQq/quW/6LrttuPqrY9jdstTi4igZko0JLdD5WzTMYLHGmScxSI1iiZlPXP6av Wh1+W90CETOoVDow2NSJteDZWkA3YxrR8Ue43xB25cPbinU70QWD1DP7dvkLN8V+1wPg Tx4w== 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=FIFryM2NkpYRo/paVCYX20X0zWSOtVu1IHcPAgIDts0=; b=dVUwID7iit+Q2ddXw4P+Pp4o/mFewrKDZygRefH19bC+QPVDyHP4eq3VT4Ii/XVm9w 8ukwo6thY4g2jpz9SQpTElPu3kXMIqtqxSpAjjsE3T5ZZ2C2JVqGo9mDdZnC3vXjej6h Z3wQQQuFjzlq1ZOaafaO8E8WSY8LA6XtcMqZi/hEauaYSAIA3p9J7Y5b7tQc9Tr7rW1w xmUKxIi0Awb+WAcNNygqBW1UacJk+xuWxzWI/CYANvJ2aGY2rb6ApwAe25vfzTk0RIKb KuMV6m6CXeQNR3eZgyvMsCdSSs720gT82S3DdkWLk6cA2dKiJyQmN4am0CWCnO3bo4SA xPIQ==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57326-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVO3XSVREbz18XWOTgh4HfJWDof1M//pBuqPaSsZU6nvJJ0vZ3d0pfyuF2bsPYpTn36XRzyOkKzqboAnbRVe64u/IcePYzCNteg0l1sfg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l2-20020a170903244200b001d72907f487si3024565pls.56.2024.02.07.16.19.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 16:19:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57326-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57326-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F1A27B239FC for ; Thu, 8 Feb 2024 00:17:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03DF636AF3; Thu, 8 Feb 2024 00:15:14 +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 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: List-Subscribe: List-Unsubscribe: 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 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 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 --- 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*) -- 2.43.0