Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp916484pxb; Wed, 3 Mar 2021 20:57:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJx9hF8Jkyn2GZAqYYabwOmOdKk4we5b2YBg0gcRyACXkKRppdd4uPQjnHrICVZjimPUM3WX X-Received: by 2002:aa7:cb8f:: with SMTP id r15mr2485019edt.130.1614833875953; Wed, 03 Mar 2021 20:57:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614833875; cv=none; d=google.com; s=arc-20160816; b=JVlAsLjDQ30lrUaarUJ89an70gLCi1d2jiOC6GZviZgGX2cNI+XVDJUefKr2eomG6C G1LjHrBCE7Eyu1nEjpP6yYMGo6MsM6BrDAAgWI3POauMDwKEiOMHGmTVt6Xj6q3yY2uo ogkL0IQZtnVRbT+kmjRFzJb+AIhTg34yR33tfQ9TNy6v5L4DECUrwojtcmXX/qIoSghX N4SkBZUVUrSwpUZ+XhBQtEh7B/MKLyLNbzZB1ivcDiSYcMBQr0d+ROWfJ9NFqrGNKngZ hG/jCH396xkihKZtqlvp3893CWV6IK5d5Z7vgc4crRJfjDdKRM3KSOLYlVKaXF+f6d5V PhwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JhHgMBk/y90b4FtC4eW6BiwgHo/zx2ROb1O8Z9hQkw8=; b=TNObaI8zCd6Y9gdLstRRp1RqqniAmBxuHUKtrjNaZiJIlgvkNUpiiaXtzIP3i9i/dF hlmpo7McbJBWyGeGL8QgoQXMi/OgMbpsRC3YfUdUJsxUvwYYwC9oRp20ozoKE1KBl4Qj Yc4Umt6SvuEHfdewzPNZqWy6nP2ZOQWGrA3Dtv4uKy7W8uFt47Hb8qKSpRpheeDwo9zB WDZNqRR3tr8Q4aZfjyQSicTT8Dz/EiDrv/ANn0Cp2blwJOzab60Bim6bvOUKlyAwdPvZ jz1t9gvOnsWx+8MMVa75KfRBm5AY0EL3WblkR+3QXBMzzciJAJUrT6A3GcrMdb8GP2hV XdNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AiVe1MAA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t18si1497910ejy.531.2021.03.03.20.57.34; Wed, 03 Mar 2021 20:57:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AiVe1MAA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235677AbhCBC0G (ORCPT + 99 others); Mon, 1 Mar 2021 21:26:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:55182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241858AbhCATrb (ORCPT ); Mon, 1 Mar 2021 14:47:31 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C60FA65131; Mon, 1 Mar 2021 17:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614618220; bh=62bPEAtgnrBZ63UwLRFJH8vt9ogszcva3eIdWy3LYXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AiVe1MAAHCyEIt5DD6C3hN0CzpBX0SJ+ZPVvNB1Xs1pLR+QEMeZ63u3se8Woc9tkp cSc1+QITYa3bwwM+0WR2SZSzglVy49TK45zXVrDVN9GuFZbYLXT5yhJeAYr2zkKu6b CRyt7v6F7jWIG75zV8kzTV9IlUzkg+kJZXRX7tSg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Murphy , Fangrui Song , Nathan Chancellor , Mark Wielaard , Sedat Dilek , Nick Desaulniers , Masahiro Yamada Subject: [PATCH 5.10 001/663] vmlinux.lds.h: add DWARF v5 sections Date: Mon, 1 Mar 2021 17:04:09 +0100 Message-Id: <20210301161141.844318190@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nick Desaulniers commit 3c4fa46b30c551b1df2fb1574a684f68bc22067c upstream. We expect toolchains to produce these new debug info sections as part of DWARF v5. Add explicit placements to prevent the linker warnings from --orphan-section=warn. Compilers may produce such sections with explicit -gdwarf-5, or based on the implicit default version of DWARF when -g is used via DEBUG_INFO. This implicit default changes over time, and has changed to DWARF v5 with GCC 11. .debug_sup was mentioned in review, but without compilers producing it today, let's wait to add it until it becomes necessary. Cc: stable@vger.kernel.org Link: https://bugzilla.redhat.com/show_bug.cgi?id=1922707 Reported-by: Chris Murphy Suggested-by: Fangrui Song Reviewed-by: Nathan Chancellor Reviewed-by: Mark Wielaard Tested-by: Sedat Dilek Signed-off-by: Nick Desaulniers Signed-off-by: Masahiro Yamada Signed-off-by: Greg Kroah-Hartman --- include/asm-generic/vmlinux.lds.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -828,8 +828,13 @@ /* DWARF 4 */ \ .debug_types 0 : { *(.debug_types) } \ /* DWARF 5 */ \ + .debug_addr 0 : { *(.debug_addr) } \ + .debug_line_str 0 : { *(.debug_line_str) } \ + .debug_loclists 0 : { *(.debug_loclists) } \ .debug_macro 0 : { *(.debug_macro) } \ - .debug_addr 0 : { *(.debug_addr) } + .debug_names 0 : { *(.debug_names) } \ + .debug_rnglists 0 : { *(.debug_rnglists) } \ + .debug_str_offsets 0 : { *(.debug_str_offsets) } /* Stabs debugging sections. */ #define STABS_DEBUG \