Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2854768rdb; Mon, 12 Feb 2024 21:33:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbAuyotoAnDJbWBJ5FeSyllPUR/rCfb7LybqIdAkOIZcbF5ItDOsi2qbn/biWx0Vf5+uJt X-Received: by 2002:a17:903:2644:b0:1d4:b60f:1de5 with SMTP id je4-20020a170903264400b001d4b60f1de5mr7498544plb.26.1707802403668; Mon, 12 Feb 2024 21:33:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707802403; cv=pass; d=google.com; s=arc-20160816; b=cyPRr4NTVuPrznIvFfjgPJPP87PwBGwGJC9UOUiB3oqlyLPQ1z0fPARSi7PGwr72rG t3ARLiVQ4B3El4OSQnO0Zz5ddvYnNm2EHZZB4vMC3adst6sf/fOKmmakdRyc6Sr30Sf8 w8a6tBdudJ8DPiqStnXkOZPW3gMk1rubkRDwhCayfs2/iEh5a0lnxIyE/SAfaAxnNjLG P7OZk7XDY6baH3l188KKBBNb1EPFODA82OYNV4cAkGfGczm/jt6Ycc2yEJ5aLmRnDcW6 Qk5sLK+HzXED4fTXD2gB1fa4AHkUY2XWkUx4yVMCfmMzLut7CZPB8yg4PAbsEKyO78z4 h/JQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=XETlmfsLFShyCAFBnC+zhCwZVHqHy0Tkff4Gvlg5js4=; fh=8x23U53T2Do9psIxYxc4p8TMwoWtW8ODUqejSSBUJhU=; b=PWPxUDyCy3juWHy2fmfSki+j6LDhXe2KvWfoCU0T+GcDBauTBL8j88IepOIRjlMN1x hUfOu8nYmeb8mnVSt60Bh3WcAbrUb3FhKUhPylyQtrNGWR51aV2/n4eHE8CXIr2oouDE jhQ1pDzT8VI7NQVYAzoYUpo16h33kosPodC25rqZXymx/b0X3mQ+clMkHKxbfon+KSpE SppwRnNrtAP0XiDw/Q4qFH6eOJjtXJpehofWZyL6/IZxwPrgxLsqxD1DJIIorpljdsA3 3P4E/faXrK240A+ZBXcmi1sdE3MlzURHJBcWszRGd3gws/5nqAgC6uGNbtZpH0lA2v96 0VUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=lQGKXsIQ; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-62946-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62946-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCWq42a4BHQCSCTXyoFVztrEGgR43vvyC/86Dv293ZZ9KooTstgmb4RdHa5bzfw43ulj6vOHSEO6AksQ5bXAHixkb2x6cNPyxAellEb1eg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id iz6-20020a170902ef8600b001da15f2a761si1404719plb.13.2024.02.12.21.33.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 21:33:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62946-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=@google.com header.s=20230601 header.b=lQGKXsIQ; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-62946-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62946-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 58765285933 for ; Tue, 13 Feb 2024 05:33:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46F8311725; Tue, 13 Feb 2024 05:33:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="lQGKXsIQ" Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB71A125B2 for ; Tue, 13 Feb 2024 05:33:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707802397; cv=none; b=tmrYtBGxwY6TuDoSky+aZiBEHHYWNsn6iGessAavZOsUTiVVoP/TymG7wuK0mqmq8UtTY3hzgXJIHtQNjPCzTTxI4iOPTwJkWXNKx0FnSWilriaYndOkPvpOvLYYpK2D0NkvTe62tsK/zsAT/UwZI42GA408wonJvqAsNKe3xMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707802397; c=relaxed/simple; bh=02Q8SrULMcBSD7ttAGWmB8PIKrympbUDiwhvHFHIOIs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=RiekRuJyV2HYXJNV+Ybw1ubUu0qK9aP9K0vUGGdratI5o5b3CixyxKPZ5wSUBve4EHhhCNmJWF7Mquvx9qPViLHOirBz43kLUoUCYGAslqOuzdyPQcG/LvgAje4U1D4Bbv48jSIe8iAGjSMLapHl8pyv2JxYEXAofcXiHMvOTEw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=lQGKXsIQ; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-56101dee221so4239a12.1 for ; Mon, 12 Feb 2024 21:33:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707802394; x=1708407194; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XETlmfsLFShyCAFBnC+zhCwZVHqHy0Tkff4Gvlg5js4=; b=lQGKXsIQ1ODfP1giCizNWaMgDJ2MeF6EKFMjgd+fRG25TmE5aA6dM1EaWrSN6Lu6hS QLZJt97QDQBUGfqS+mDYBkoM4mpeSPaUn2nHKpmgyYT5QO31qXZ1tN71gokhv/DYX3F+ il91Qt5vADjlSyWNaQiq5fhOT2uhCpDlCz9kP54xoEVkB6u7RjaoUH0LhXYo+byImY7V IyiydKkhtJEDi30I9pG8HvZPuPnNKpsahQHQ4+y8LyZZiz1whnvIHdF93OvePqmVw7uh kl/Cmqg0thcx3e5cZzOyIkIV8u+iNiQVuaffRqhJgyZv7ZmHgAIGcjjX0fpiPQGk+P01 SBxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707802394; x=1708407194; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XETlmfsLFShyCAFBnC+zhCwZVHqHy0Tkff4Gvlg5js4=; b=mqw5FKWJRCVgXqHTyWF72L1l1DH+0FtPP5WGf7visBRQ7Fh+at9e0m0xJbEuGcVSfp YqyuRVE+ofuhtHabOPehv14tK3h3Kg6lX0+GtXwnUYfeicY7nPHNGAuy07/PrEgSuwzB R2DC4KmaQb1OqgChVV4jRfurt8YHhvulRzeiM7K98DvfiROtoCtEgL0fImAjbVCFFob9 xOBmUufEW6K3PWgsgDm0+C3e1crdJVImCyKSXx+2dOqkAfLrvA1yOsBf1imnBH3Jquxk WSB445Z1o6lbO8x5FJKXvkF7XWqzsDFkNkrY/k4VmURWYh0con4dAhyGeZFGQ1Cjvg66 P3Ow== X-Gm-Message-State: AOJu0YzGHsogfs4vdoFRaegJ9GvkPdKGg4wxWhAbGg86NhMXAWlQqsLi JZZ8XYwdJayDOxpZjS3HXLrGqj/eI4x8c1/9y3sXbBU6CSdMOnfA8BVjys+1Ce/iv/ag5wocd4G 2iyTdF/yHTU5vcKZt7+d8SZYw9bWcyllgd0dsH/rUGvxpNX4zviFMIp4= X-Received: by 2002:a50:f615:0:b0:561:d84d:f6ce with SMTP id c21-20020a50f615000000b00561d84df6cemr80706edn.6.1707802393936; Mon, 12 Feb 2024 21:33:13 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240207-s390-lld-and-orphan-warn-v1-0-8a665b3346ab@kernel.org> <20240207-s390-lld-and-orphan-warn-v1-7-8a665b3346ab@kernel.org> In-Reply-To: <20240207-s390-lld-and-orphan-warn-v1-7-8a665b3346ab@kernel.org> From: Fangrui Song Date: Mon, 12 Feb 2024 21:33:02 -0800 Message-ID: Subject: Re: [PATCH 07/11] s390/boot: vmlinux.lds.S: Handle DWARF debug sections To: Nathan Chancellor Cc: hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, ndesaulniers@google.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 7, 2024 at 4:15=E2=80=AFPM Nathan Chancellor wrote: > > 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/bo= ot/head.o' being placed in section `.debug_line' > s390-linux-ld: warning: orphan section `.debug_info' from `arch/s390/bo= ot/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/boo= t/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 =3D .; > > + DWARF_DEBUG > + > /* > * Sections that should stay zero sized, which is safer to > * explicitly check instead of blindly discarding. > > -- > 2.43.0 > Reviewed-by: Fangrui Song --=20 =E5=AE=8B=E6=96=B9=E7=9D=BF