Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp651294rdh; Wed, 7 Feb 2024 16:17:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHdPl41A4f1TKaUW/j/Uy+JNrvZCTqOxpegdrqAcz4nVzV+BotLaKeJjc5WoJhUcNqtrvjm X-Received: by 2002:a05:6a21:2d05:b0:19c:b1f0:9842 with SMTP id tw5-20020a056a212d0500b0019cb1f09842mr8313577pzb.8.1707351479497; Wed, 07 Feb 2024 16:17:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707351479; cv=pass; d=google.com; s=arc-20160816; b=F6QKbuy6p34QjdgRTYCBX6umr/Jaom632YRQjgKKqfA5Z7uJn34A/O4Eks58JsJNQX 3CgtdoiSitrz3UkFtKlOy4p0B6v0FmoahINKjpqw0W+421jntGAwmxNWod4ZYINwC+nP tc5wkUjTa/tmABEop1pg8GMjO2nMYYAPC5/Elxp6Oa1KEDc6j7B0yKyenvTcu7GcXBLJ D2ITrDCY/nZsCbAOD9qq/8AH6C4zxmP9NLJmfVcw7SaULYbIjpMnQNrcOkrTkvAnc6+O /ZAU7o4hyu1EJ9ionboG/PHtAvDGjWdaManQ16eEytL44814t6amktrMTBfZXfCUy6KW xObg== 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=WmBBWIIpgusb9gfESvHYf0QcDk1bBIFkL+77B1aV46o=; fh=Z6hNq5yxj7vNxqeiOywMb9NVI2klhTb+hruP12praMQ=; b=EmEOLCIjDdWf4Smoc9FlhBI1Ka1XorxqI2cWboEVtc2KDX/GCi5LC1Ngh6lvR/SfGJ /GRWGvgNiS5JzwUKAV9TxMUPJQiN7648AWXFZGEI7u0qrfDXrWrChm6thxYwegk2UHo9 f2dHi1ENDdvHWgw9pftDFk11MuTHNoL0UUVelcM1C2PQ2o4J06wScVIL4rJqdKgGncz2 H7fz3T31dYS13uubqYOQt9dDqtL0sqo51mLBPampnGuaV1vH7kXAGAxQKIABOd/x+/br 9UvpTowhhvG01z4FT9YxenQuYcH3NN2mtHmn9pjZmYtk/p83rMFM6QIU4odaWaIyUwI9 JeQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T0j6x3wg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57324-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; AJvYcCWtqpp/1IutvumZjFCO5wsI7qco0yh0wsk5ZdIhb7EkvpHVMYMVd4/K2rL+rUUi/8zMqvOYDk6O5hzPDv6hfLnm0mNLfT9lJLcC7j4n2A== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id v15-20020aa7850f000000b006dbdbf8943esi2642513pfn.182.2024.02.07.16.17.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 16:17:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57324-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=T0j6x3wg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57324-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 06A05B23C33 for ; Thu, 8 Feb 2024 00:16:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B28536117; 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="T0j6x3wg" 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 22D3F2EB1A; 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=1707351311; cv=none; b=t+mEIzB51CDH75GHh5CKpqmB+uoa9rGPqC+mxKLXC9LhhAqB3bK6VOiO1GgxeZvxCCmC5Gf/9VYxqfKEYPKZCT2ywtOTarLqV75W2sfL0FBQ4eTESFcfEfGaTVWNpt3YsmiJ5tvIDOzs8w4nC2gYnRXBh893WyXFxPqs2U9eKn8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707351311; c=relaxed/simple; bh=KHxjzg2nVnCz7Xo3WUiDpqO3qL7wZjCy4cl0c4riXaY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZI1Iir9c7Vwd4EcGWDZkyZhitNfiGTJFKlSFe2k0Rgcmj4f7RSOdXvNvhqK/KbkgyF6OEjuOohHaRsrV9Ijpxr3nhbAN6urLcg+i1xK2npn1eXW/hJqXWy4BTm3eZtnEIcD3e2DbDclbrzbDslljVz/Adx6koTOeKJh4H3Om+J0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T0j6x3wg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A9E1C433F1; Thu, 8 Feb 2024 00:15:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707351311; bh=KHxjzg2nVnCz7Xo3WUiDpqO3qL7wZjCy4cl0c4riXaY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=T0j6x3wgeIAg+/sh2h0RKM4Eb75pwg5NNVAxncktwO4c8LZqCo9lHNA5Mxrg0hTtk A6gqYouoa3iGNuKrj9Q4M6Y6cPfb4VvZ2fcqaMnaKULBon54kQgDlXburcQHSX93vB vPmBdFys+MBUOH91KeTR6zXvW8Al5NTth/rRwVDjuuFRSYpUT4r1XxoAkWVR1XmYHH xVlXZAoZcU1v2rvn+g7HU0j9CXq7Cp5naBsa52Kz8rq0ViFvQ8KULzEU8A3BOglyzr 1qyp9J85Wr0HEKGFpW2L43w9nm/W6RUry6cK/OkfC/nPWequsNvL/6BuFKW+VucOxz 1PRXZZmXX8eQw== From: Nathan Chancellor Date: Wed, 07 Feb 2024 17:14:59 -0700 Subject: [PATCH 07/11] s390/boot: vmlinux.lds.S: Handle DWARF debug 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-7-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=1511; i=nathan@kernel.org; h=from:subject:message-id; bh=KHxjzg2nVnCz7Xo3WUiDpqO3qL7wZjCy4cl0c4riXaY=; b=owGbwMvMwCUmm602sfCA1DTG02pJDKlHZDlav+Rd4Nvj9u6e96vjoowWO/O+Hzha1M7MIPl3G 4Ph9WPOHaUsDGJcDLJiiizVj1WPGxrOOct449QkmDmsTCBDGLg4BWAi/WcY/kpEP1aSPDft2HyR nkMfTNZLGr6fdJcxJ+HwqRmGhvvO8r1gZNjJvSnXsELt+26e9M3q51kXBNUXtmhvPTjTeasd82w nGRYA 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 for each file in arch/s390/boot due to the boot linker script not handling the DWARF debug sections: s390-linux-ld: warning: orphan section `.debug_line' from `arch/s390/boot/head.o' being placed in section `.debug_line' s390-linux-ld: warning: orphan section `.debug_info' from `arch/s390/boot/head.o' being placed in section `.debug_info' s390-linux-ld: warning: orphan section `.debug_abbrev' from `arch/s390/boot/head.o' being placed in section `.debug_abbrev' s390-linux-ld: warning: orphan section `.debug_aranges' from `arch/s390/boot/head.o' being placed in section `.debug_aranges' s390-linux-ld: warning: orphan section `.debug_str' from `arch/s390/boot/head.o' being placed in section `.debug_str' include/asm-generic/vmlinux.lds.h has a macro for DWARF debug sections named DWARF_DEBUG, use it to clear up the warnings. Signed-off-by: Nathan Chancellor --- arch/s390/boot/vmlinux.lds.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/s390/boot/vmlinux.lds.S b/arch/s390/boot/vmlinux.lds.S index ff8c62d84f98..83af17bfe630 100644 --- a/arch/s390/boot/vmlinux.lds.S +++ b/arch/s390/boot/vmlinux.lds.S @@ -122,6 +122,8 @@ SECTIONS } _end = .; + DWARF_DEBUG + /* * Sections that should stay zero sized, which is safer to * explicitly check instead of blindly discarding. -- 2.43.0