Message ID | 20240207-s390-lld-and-orphan-warn-v1-5-8a665b3346ab@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-57322-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2587519dyb; Wed, 7 Feb 2024 16:17:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9atotpArCmaz2ufKR7mb7QhBgBs2Melmo/mfEUEE1EKZfo9Rbl4oRbBWg3EoRGfOps1cO X-Received: by 2002:ac8:7342:0:b0:42c:c5d:430c with SMTP id q2-20020ac87342000000b0042c0c5d430cmr7261419qtp.18.1707351429366; Wed, 07 Feb 2024 16:17:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707351429; cv=pass; d=google.com; s=arc-20160816; b=Xuei7LFmwJ6FJvBUUznWhh7MpK3oGh42yoGbdoLWyMLmVzwtk4NNsJkbGZoW5LxC4P lolZq1+hKAbLVy0L03W9ICsJkSpO1YPnwmGuk+AoAwuXg/ovnOotw+6KJp69QUppQsTG DWmbLlaf9OqnLOymWIGlF9r2F7pgA9iUiXNpTPxyOQjT+Lri99z2TW37Wrzlpcd4kPH8 PxwaB/h1f352pNdv8qWoqArlUAZWqjKt+fHI2AS77eLL8xcTmaxP2oBlSITcBUd46x3k VtEuWCn0M0GWrXVXNZQctFw76po12gYydXVWa6vlVu3UMiJTxJ1RRBkCdm0ZRkqvhgDI rAMA== 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=En82SMD6NHc7Lj4uwzGBSYZ7Rfv3cE0r2TtnDl5mf/s=; fh=yIGZKspw8AMPt1BaWxQ1XOXh2HCZq/9rqO/5yJ27IDI=; b=SlXTa25mImrJE0IeWfXBuCQv4jfQa0m9wkyfx9TN27AUWHdIiq0aZcD+h/yvWxtrmy 2l3hwpUpw+MVluvhfIljPppoi2S1DKcGfKKEVvqxeKvSd1Mhp5tqmpOquByqnMQ5i5LG sHEp4ZMOK9qpEeP47qhG+WNoP/VjVq56PF8kneXzx8g2q46cMIYTVeUxKs+sYuY/6dQJ 5xZb/ycnup03HvGgZJqOm3FQq1P25TvqvGufJgL+ZEKQkk2trWGfUp6/xEMc8E6xs5HH C3A7c8/eAiCv3X+NxW8f6dIModoTL2NYuuANOVi2r4MhlzYY+LL9fM9mmroji7CJdUEZ ORrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yx0QPSPy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57322-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57322-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCV9bMVwBWie9VKP2wlDm6Q9oEJd4yqbTpsw3J57FfcmA5EQqGy9f0bQYEIkKP6rnmn9xhjG4YAf38AfMFFDXU7tbSzHEw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v19-20020a05622a145300b0042c364d3b31si2217645qtx.96.2024.02.07.16.17.09 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 16:17:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57322-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yx0QPSPy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57322-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57322-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 E2CDA1C2274F for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 00:17:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8FE5364A5; Thu, 8 Feb 2024 00:15:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Yx0QPSPy" 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 D69E823769; Thu, 8 Feb 2024 00:15:09 +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=1707351310; cv=none; b=Jl8NbSsLzlNsB48sgKsCg5dPKCSPs3eZulux9RTW5tF5AJ4wKL170jb2p5uuC80gD67thUpI4rZpAT4Y4/Vqmf6Xf0DemKpdBvY7Vl1Y20rJpT/gUxdSDdekjhQVuDRl+trqMED/WXkCsWKGI1t5hXbr1MyriDZA+vMvzFY26qI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707351310; c=relaxed/simple; bh=gbC1anMbNm1FG+NXPrt8YyWEwy6EM4CjZshV2LCDdrc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=s+kFSgRAsDdgGszKOVLT82n20tGkbyXtCJsA7P3xrKh1S2BhAbG9Sh5kVpZMAfaar8ltKBvjBaZFC5q5B4+brWf1qXCfBf9crxGFPGksWOUdaBhFJ7XZmy/UsTVjUa3UOSwteQqv4+4gHtB4XUdVKRnpX6iRdhm628a7T4r401Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Yx0QPSPy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A333DC433C7; Thu, 8 Feb 2024 00:15:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707351309; bh=gbC1anMbNm1FG+NXPrt8YyWEwy6EM4CjZshV2LCDdrc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Yx0QPSPygQaFPOX7tvO4hR7s0+YKqwXoGcWLfzg18LmIjcVLenaJw5PmWLJ+2uF4i LNru6iJPuzgGVxbIDDRY1W6RzV4SzmO4tuBk1qhJ+03NIP66w4pQo5JptJ6DAcUxyR P0KYjI4rdj8Qat9jNLs8KU0aYJr59acs4/tOTtJgaMhQTIln3pwRyUXR7jWpbXUJab skwm9j5XZnAxMdfdxyL52Fg0w7cAiSTokk4ZoBc/plDBTp6h24e/wr3V3nbGhf5Yb2 tdBz80eezMkzM0z1kZ1tKWP9WmmQJEOHZ31Gio98ggS7uLJo6xOkW4yjK86sHEdLV6 d8TgKxL64JhYw== From: Nathan Chancellor <nathan@kernel.org> Date: Wed, 07 Feb 2024 17:14:57 -0700 Subject: [PATCH 05/11] s390/boot: vmlinux.lds.S: Handle '.init.text' 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-5-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=983; i=nathan@kernel.org; h=from:subject:message-id; bh=gbC1anMbNm1FG+NXPrt8YyWEwy6EM4CjZshV2LCDdrc=; b=owGbwMvMwCUmm602sfCA1DTG02pJDKlHZNmr4358lJ0kPvHbxIPyJQahjrHTauQPdr++fHByx ltjpV9uHaUsDGJcDLJiiizVj1WPGxrOOct449QkmDmsTCBDGLg4BWAi6+IZGZ62LXwzj01OKzV1 eZxOTXP+ReerW16+4Mgw/S+wrX3C6TSG/w7bVY6Zl83qSbnzOjb42R3L78I3fZl+xN2XvrBJZNL aEEYA X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790287732472827322 X-GMAIL-MSGID: 1790287732472827322 |
Series |
[01/11] s390: boot: Add support for CONFIG_LD_ORPHAN_WARN
|
|
Commit Message
Nathan Chancellor
Feb. 8, 2024, 12:14 a.m. UTC
When building with CONFIG_LD_ORPHAN_WARN after selecting
CONFIG_ARCH_HAS_LD_ORPHAN_WARN, there is a warning about the presence of
an '.init.text' section in arch/s390/boot:
s390-linux-ld: warning: orphan section `.init.text' from `arch/s390/boot/sclp_early_core.o' being placed in section `.init.text'
arch/s390/boot/sclp_early_core.c includes a file from the main kernel
build, which picks up a usage of '__init' somewhere. For the
decompressed image, this section can just be coalesced into '.text'.
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 4aa2f340c8d9..2f0bc05664ed 100644 --- a/arch/s390/boot/vmlinux.lds.S +++ b/arch/s390/boot/vmlinux.lds.S @@ -31,6 +31,7 @@ SECTIONS _text = .; /* Text */ *(.text) *(.text.*) + INIT_TEXT _etext = . ; } .rodata : {