Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp374602pxb; Wed, 3 Mar 2021 05:37:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3Ve+J4R3dl9gVzXUl+xymZY42bmx6Q4lD2EHuOngPj4PAeWCAWhJoJK8zdg9yPvL6uXBC X-Received: by 2002:a17:906:1746:: with SMTP id d6mr6186067eje.36.1614778656711; Wed, 03 Mar 2021 05:37:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614778656; cv=none; d=google.com; s=arc-20160816; b=EM5CrHcLCxBzBGpaa5vE6h4TpIMhy7P1mx9Y5VR3URiZC9A3pJvdeD+g8M4fpwI6HA UTEUG/ymbC3oIEVHiYf5lP2HxbFnOSYIrELFoGwo6EwPKn1nhWnF4VW/xyMOR4rWLwA6 rfjR6lucWCgisLp3V7PNMXd9Gbn5jsIN33Q1CCh1QFkVcK7DrdbJj98sfHCd81zObd2U o+oPwAWzfvjvTZ1YlAKzG0nuZw6LHWOMsEhXugAe2X5bQpJFSzkS3HfkvIycz4tg1B+y GYGWwIdYjUkOn48f7uh0CWW+Mk2lt49D/cTopTzt43l1XXwAGsjLQsN2r5HCHtF2wJ7P Wxog== 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=uI1fwjKqvP935OmlXHASAKSZpFtLXRockALLxnlb2A4=; b=crwjSwxrqw15qZ5z262m48M4BkyOMMueSwqw2SpmJYBw0CIAkH25Gh1yg09Dx4Zywk TgOg5nFz5F3/cTt6X7Qxkci0ErUilvSN/N7ILn6ZOUGsSLoyX4Bm9EexznaOn97Zan/g eKI6//YNCqIS6Xwdr1n28relLWWQ/OhIF4kUF3AW/kHKiCV6RvSZl6TKOm9LRvfuDInT NVGTdmadJvQdqnPgIhzFHclD+n9Q9izch5CSh1p60ZdHE5Thjxad4iFOiQEMLmeIeWzf yjZ+U9MNuLJNeGziWGKrCLdz8wtzDUqTf0t8izvDP6rarOQK5W1cqGnSqoyIaxGgik/S IoFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ns5zck2t; 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 bu17si17130758ejb.22.2021.03.03.05.36.24; Wed, 03 Mar 2021 05:37:36 -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=ns5zck2t; 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 S242267AbhCAToS (ORCPT + 99 others); Mon, 1 Mar 2021 14:44:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:55608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235846AbhCAQzq (ORCPT ); Mon, 1 Mar 2021 11:55:46 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 61ACD64FD4; Mon, 1 Mar 2021 16:35:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616559; bh=TqAN/VQDw1RMvBdeBPUbqOEyDtj1eXZgEmySKGX36kY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ns5zck2tVqAZAVx0t6zlpjObMBcqTB9dX0qJTH06St7c5mkYvRFqlzPQ31LE36eoX nXQOS/uNNhKpw/jcmNL7J4wqdXO4IXzKm3uJSQROj/YiRDX1RLWg4yx+n9MZhKyOc9 ydH1wdIdB/uBWFjwoi/7B5AUIiPdiLCSzIzyv5R4= 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 4.19 017/247] vmlinux.lds.h: add DWARF v5 sections Date: Mon, 1 Mar 2021 17:10:37 +0100 Message-Id: <20210301161032.536001585@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 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 @@ -701,8 +701,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 \