Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp650976rdh; Wed, 7 Feb 2024 16:17:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IERhyrdgJsRblJ+u9bfYYAZH8LI0LLbNn7TtZ+0N6RbDRettH6ZmMhfocdN93Z7C70Wjoc4 X-Received: by 2002:a05:6a20:1448:b0:19e:a637:6132 with SMTP id a8-20020a056a20144800b0019ea6376132mr3577126pzi.7.1707351432630; Wed, 07 Feb 2024 16:17:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707351432; cv=pass; d=google.com; s=arc-20160816; b=rFbTFCHk3Zxqfem4rgF7Aw4K3AhlzLg9/C+uDCmHVI/wCVcKN7ajgvsjcAAMnXRoy8 wsVahQm3Rm6m1BhxtNlbCZKaLs+6Uu75/9hM1DadEyAyzp+g1Cw6DpJLWcVRvfJULZ2d Yl1r9hCQ/cjoLrbpj3top/rapKABpaqVw/gIvekSC+MyWhbtvONgHn0Kmk1LN5V4Rkf0 tc1b9DvOMS+2Bh9/AY0FFPOyGMZdEx4wTrUDaPNZ1AMbEe8Oi2yIDdShMlEqyaKbavOr 6cOszHjqSf5/wPByxf8odYvMN3/5cr6+uy9TIEljp9drxZCVa/1pu8YuLBquhl1JXEVw fzMg== 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=g9J2Ps2lao6vGT/6f8MK6XL4Wle328iN0KQ+Iaj9/dE=; fh=lwhd1Xz0IVt9qlveP5tDMEIXIKVYbQeLQr8N43Kr4vc=; b=uRf+6AsM2OE9ubD8t3wpMMTETMuFWE8PDJbz9A4R2XdRcAol3GS4yHxU9o9vGpx71L oDzp9Vfh5dqBEPMlxfk/6e9D4n4Ba1A750aMOE4HdwNS3PoAPu1gT/6smy9OWb8dPY8r WYJx+sqTdkU21WbutYYlsdRnOtHBUz7WpC7fm6hBH24rYOi1xqP2nVsB6zjArh8fQ3oN A7bmqt+ZLgLFTXurCnh+tm7fZkyyXI7J4c2e63e1mL1gFO9gtuoD/d6wiLlMhhbr6Lfo uZpcvzfEYOpM7XWpC7AOaMeXkVNIjT3Q1XNcgK7jew4PNlnjgaoqFfI9gGFq81JjsIt6 F9JQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C9sVfPBs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57325-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57325-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; AJvYcCWkeIhxqllRzDXTuaYRcHtLnzmZE7AyfuGadWrQPMzvTKZ54KIxiYdPHaAtJq8InekeRTrFRd6LuWOeEJqBRB6fy/ougI4UorShHxEZ7A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k19-20020a170902f29300b001d8ee2c7fcbsi622618plc.506.2024.02.07.16.17.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 16:17:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57325-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C9sVfPBs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57325-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57325-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E18128800B for ; Thu, 8 Feb 2024 00:17:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4219364B3; 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="C9sVfPBs" 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 EF81636102; Thu, 8 Feb 2024 00:15:11 +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=1707351312; cv=none; b=Qvz8t7EtJCE93gEQKT1WgWH8UidqvDAhgbpricQFyq1/GCbe850NVH4zmgymfCUN5VljUPvLKL4m3tWsdSnXrKtkMvAhwiDmY1MhcB+VRTSui0uvu40/PJ6Jub9YipB7jzS+7FGtKrXUgtZg2ND1FQ5dY8h9bYJXGuM2zzNYHC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707351312; c=relaxed/simple; bh=gv2syl8soBeiqh7QJH+tsCZ+2ZB+BManKyNhoDBSrmQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ITEKk77LToqWkJz+q8YW5XMrkODDrFtHAEPRPNhCZgGUOng1eIiiX+rdfQhhOTZWVhkaimz0fzk7EuuA+oe4a8BDYp+IvCxCvuysUV50sxjN1Kly+nmABblE/7W0Y2DrmwNkgT6+dGuRUoH7NN95A6mCSqoAG4rju0MZxMw8x3o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=C9sVfPBs; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A3D7C433C7; 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=1707351311; bh=gv2syl8soBeiqh7QJH+tsCZ+2ZB+BManKyNhoDBSrmQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=C9sVfPBsK3DQBpnrNPYihu45yaQ81e7XZRipzRtD7VWptiVbTgYsSZYOn8fSSFpYK XOUPKsEzfCNErrVYHBrIst/SYtSOTM/fv1baIOcbcFqhYHqt89CoJpvzH1ZufEQz8P W0r2zqTCNKUVMmMYmJkDLvLwimY2uDWtWPCnNRj7b51/01b6rAfby4mJD4s9Zazvuc vKuMypNK+BTifT3EstIIm9T6D11G37CmCwTwj9KFKE6Daanf+S33YSderN4HUy3is5 YECM2wca5BYpWJuEL7DvQ2Gip/Zu3E9yo7l9pW0/qRkSVeT5haqxbh5exSyoC6D/3x P+LxX6xXZ7Fig== From: Nathan Chancellor Date: Wed, 07 Feb 2024 17:15:00 -0700 Subject: [PATCH 08/11] s390/boot: vmlinux.lds.S: Handle ELF required 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-8-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=1172; i=nathan@kernel.org; h=from:subject:message-id; bh=gv2syl8soBeiqh7QJH+tsCZ+2ZB+BManKyNhoDBSrmQ=; b=owGbwMvMwCUmm602sfCA1DTG02pJDKlHZDnmX6rx77twx2bHR/euFdJz7dvvG57MUb93/Hv5J LVnwjw/O0pZGMS4GGTFFFmqH6seNzScc5bxxqlJMHNYmUCGMHBxCsBETrYx/M8V+JHtUdp8esey wv8vUxTvM/5peZxfo9O07pySkrKwx09Ghv/qN15oah/qPR7SybG8hyf9wI55vo5Wew7dX3N1Zee XX2wA 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 is a warning around the '.comment' section for each file in arch/s390/boot s390-linux-ld: warning: orphan section `.comment' from `arch/s390/boot/als.o' being placed in section `.comment' s390-linux-ld: warning: orphan section `.comment' from `arch/s390/boot/startup.o' being placed in section `.comment' s390-linux-ld: warning: orphan section `.comment' from `arch/s390/boot/physmem_info.o' being placed in section `.comment' include/asm-generic/vmlinux.lds.h has a macro for required ELF sections not related to debugging named ELF_DETAILS, 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 83af17bfe630..2bef450e84e9 100644 --- a/arch/s390/boot/vmlinux.lds.S +++ b/arch/s390/boot/vmlinux.lds.S @@ -123,6 +123,7 @@ SECTIONS _end = .; DWARF_DEBUG + ELF_DETAILS /* * Sections that should stay zero sized, which is safer to -- 2.43.0