From patchwork Mon Mar 1 16:10:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 388661 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp3520658jap; Mon, 1 Mar 2021 09:03:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnWktPH46BBrzMQqv0I7N6chGYmCUMVDuRW4Ua3kBBFfhr6ijfCOFjxktg5orI5g0WEcnu X-Received: by 2002:a17:907:1629:: with SMTP id hb41mr16105531ejc.197.1614618222962; Mon, 01 Mar 2021 09:03:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614618222; cv=none; d=google.com; s=arc-20160816; b=NBU5uaHOZ2uY5hfjVTIOukO/HKNlVIAfK8vIUft3NKNTsfOwIPI8wtPsrC+bCuwOI1 mrhTWRsWFf196WWKmJ9MrHaO+UhGhi3NU+vpxBHGu29qlsqQmT7JW9tEA6mgZObzXLsA rxoPwSBgg69rqAIgtq8WBjmuBO6dR2AlJ5HyiZMWhlpH/2QbxBN9bVJs02AgLh9Rk7L0 du1ljju8VnhUvfpAJwe8Gp/XeB4eRKZAKlt7nnhCo5Lb83kMJ1AVr5NtKOilFS52t3Ih dKy80Yxbx8S0evf1L0NxR3A9SUkU6dOCsU4rUTJxzXNk9IOsHxNQMiRQXxywayxe8Ncm 8bYQ== 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=V1k+zyjNTmMbqX0lSDNoAkbmRZxz90J76C+Ul/qRt5pFc/h/LteFIPFBJrCSxVrtc2 ZGTQOVvw+fk1mshuE8wt7P9MkS2K6JKyTQ1XbhFsJGi0z4tKaEQGdg54yL30v9rfUyHM E3lk2oSXFbq5AJM90TTlqq5JeIkQJkGVwQ+XVO9NQ7DD0eHP/L1CGDU3eQE4OnJGlEMg slDLNjWGglBURNaMah4boRDFiDUCMrbGYb2DiKJLAjTDWnIJQzBxd4ih9yEI5bK6v8z+ TT6wdp41kX0L8+zDWaMsQpUJxji010mKfGvjzq8LqQVAlXxs3gSSSBQCbjkcjyfhMv9B 3M9A== 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 stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 la25si4897662ejb.703.2021.03.01.09.03.42; Mon, 01 Mar 2021 09:03:42 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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 stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S236440AbhCARCb (ORCPT + 13 others); Mon, 1 Mar 2021 12:02:31 -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 Precedence: bulk List-ID: X-Mailing-List: stable@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 \