From patchwork Mon Mar 1 16:11:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 388654 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp3508799jap; Mon, 1 Mar 2021 08:49:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrmkGDiEzFVtuTzarJTpWYMl8L4lGvepZLf/EcZQqH+dl6RgfvR2iN8MelJ0Gt+ZSGO1l2 X-Received: by 2002:aa7:da0f:: with SMTP id r15mr4923044eds.111.1614617341933; Mon, 01 Mar 2021 08:49:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614617341; cv=none; d=google.com; s=arc-20160816; b=fIcCTUL+HJt60ZFalbv0VXnXIWfe5ShiiHM8ZrGvM/SdlLXNt79a6RnPL52DyCAx/h BPuS3Vaat9X80IBpR7AaAmxbkydtZygDtQETZOebNrC/2UujbC7lJwlcIXpkJTVc0ei5 afENYSSIsJBe/Jnj8ZH82LE65jgx96assXxq3x7Kr++VfJNCGMDW7jz1XM5CUBEKx+NE 52RSR/J0LmAI8dfCrwERl+XJE6rV57g78fxdLYTZU2bmyJNcGH1JoAeqMJolwfzOn/dP KNnWMzSn9Rix4i6ZT6AzB/QBpUWxDfmBX0414PohMxGtlzDH+lxKD73uEwUtJE+1AqC+ JHJw== 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=5a63VjLU1m4PFDNnFBx6dNpDptbR4cRrvSoWPXbU/54=; b=xt1E8X8A7wT3sElEoDWFD5OCwm70/eh86Q5zhxKlbcJJ9p0NXhRVcDbBxFGE0aoxLw PYH4b0zEwF0LCtO8I4Du8gyWLfhRjD56ryOpF2us5tqAXrESD2VaukM79ZayskQaRump LHEX+eTK6TaxcPHmQ1ngmGHhyNPpKfP9GsoWhXqMuSYiT3HbqUJlnBqvCifrj6Z4BOzP skhOti8WU1fcoC1WbWUcB3AjwiXk8OGRQPjdk5MYEAW5kb0F5lmEOmrpclCK/VJj/glN iXxQThhRvaMMRf22MdEAJImbcGtgMQlLfMoXnCm+6NRwshMi+mXMNNij4+d7/6JBa9ym S7Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M+ofUIaW; 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 h28si12089111edj.309.2021.03.01.08.49.01; Mon, 01 Mar 2021 08:49:01 -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=M+ofUIaW; 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 S235312AbhCAQrw (ORCPT + 13 others); Mon, 1 Mar 2021 11:47:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:41538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233864AbhCAQjB (ORCPT ); Mon, 1 Mar 2021 11:39:01 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2CD4E64F89; Mon, 1 Mar 2021 16:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616094; bh=JjAwIPrgwgpeZS6RWNXY1nOgDD/pPxiRnmNbc1xWC7g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M+ofUIaWSfn5A52FfFq4C2wfyHIyREnKcwQOvfqPY91jmwUY4L3WHA/SxrU66xPTH 8aXkrthBxb4mY/77nk9cq9h5sDbVGEc9y+urpPb1Oe05ekUHJEpouyXydMKOYGOEul ZZItwpVgo2wDh8FxG1uqUv9dz0+B3zAODf0SmOUQ= 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.14 008/176] vmlinux.lds.h: add DWARF v5 sections Date: Mon, 1 Mar 2021 17:11:21 +0100 Message-Id: <20210301161021.365813691@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161020.931630716@linuxfoundation.org> References: <20210301161020.931630716@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 @@ -669,8 +669,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 \