Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2130171pxb; Fri, 29 Jan 2021 14:10:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwF+LaCs07xNryDz2CAJzF+sJmOKRCmGtZ8YPnqF7+t1Joxt9nKHQp4kKdZfDSYg+StODAz X-Received: by 2002:a05:6402:8cd:: with SMTP id d13mr7409072edz.335.1611958248296; Fri, 29 Jan 2021 14:10:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611958248; cv=none; d=google.com; s=arc-20160816; b=TYctznpGepWXXzEEA9cruTeb6167fkrWVnIILo1ucjRKhD1offcJrP+sBzbdh5EYtD NwqF+WylX+nwOoi/vai2AIUQVsjQVKEj0R8tGCgWyW4iOu/vfSCDUB0Vj+jsn+VRGHZy +2L4GzOA+MuARnH7Csz6ajelvgDaWagz5UrLjENQguJLPVfWP/D9mwslou09CRqIUlQ5 QuN6pXhvp3kOAp+xwkh975kcSlQ2v2mWnulHHx8EgBwe89Po2KOY3CJfEASvPCMwiV3j iMptjAOCtzfY9Z+zHtJ+/VTlfcREhuSX/IfdgUNdmbfssZzsgnvU02gGhsagI1CQ3LNF D56A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LDLk3Gi8vfPdyllbM1ZaiSSr9IGaOarIqu+88E328X4=; b=AEgTNwWOvpSkglx/yWC2HEAfx12ID+kXv4wR1LA4vayTMphalohwbtVJh58TrX16uk lQmWi1wAlH82YOjo/hKgEDjjP2FQ6KRWuKGrQuYNsE4FkA7kOdnbr+i9FNoE889HkeCz Hziuxr3TJFEJjW1aBccx7N0WO5yKNDg29xXocKndEfUwOeelqbFIKOXeCFv4h/LTLfZw B5aL4IGunxitdX9PsNCJHNRjv8wQBFRf+c/dyq8XsX8iIkm6+hhv2rJHsbVA2XFZCPRg 67I2NrcPfRdCpczY3B3R7YMmgwpE+72d2PGw84YgzXCzBJI1R8Ky1+/lxinFNoddQTfc XL7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WVsNujE5; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s8si5917682edd.534.2021.01.29.14.10.20; Fri, 29 Jan 2021 14:10:48 -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=@google.com header.s=20161025 header.b=WVsNujE5; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232752AbhA2WIc (ORCPT + 99 others); Fri, 29 Jan 2021 17:08:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232727AbhA2WIa (ORCPT ); Fri, 29 Jan 2021 17:08:30 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF1A5C061573 for ; Fri, 29 Jan 2021 14:07:50 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id s15so6083497plr.9 for ; Fri, 29 Jan 2021 14:07:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LDLk3Gi8vfPdyllbM1ZaiSSr9IGaOarIqu+88E328X4=; b=WVsNujE5VVA2Er6vgcG75izrIGDXnkBM63vzzKe5rfEmHsH50G8WmQh9J1/tDMBxwK /iuIV1R6jdnj76638BjJkOed2U0yY+BA+2YVuSpKsaVLcLmLvZtJN3hCjVn6XWdAp9z+ VZ+leM5IBKUFVYRINJzqsGhXdR/bzzCEyDFtE759bKIrXg4NdvB6gNRpQ4aIWM1mfdSX HSlpRuD5pyztnE3RYxkH1OW5E7qLHNceE8PdSYeksB8JiOcG0RJaufe3R7x41GQOLlTM dHZI15xl7W7bgToSCWbw/Y6dmGYQS0nBYhYI/REKO7lvaMk+cM2fphEZFEZogOG31lOK Qy6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LDLk3Gi8vfPdyllbM1ZaiSSr9IGaOarIqu+88E328X4=; b=f84O5YCXWi1Nzfq46ssTjCMd2Xhon1MZpKXhFKCkCdp8bPiYcFrlBd4hBZVi60Yc5R rDsQFRQmwi7DiblQb4KEjZysCWY9IYRrhrAg+hMzArfPy7bmafo1ZcHEdqPjmEhoz35m oDRyZk+zvVeoeXS6KOuZUwtgBwk6CxX+IJUEIQmfScPXcalvpUcO5abmO9hCHb6T7ewN LxU23oOwGPmWfr/vHZQOOhY7KAmXANCGo3NGyQgixQdOEkKJXyB+d5Inn+frJv5apCbl Rc9lUfQHY4ed1ocag4lgVh/2H8jOObH1behI3BCKwMFGtDj5003+R44UBP6CWRtrr4om CtbQ== X-Gm-Message-State: AOAM5312EagHpnvwPzXblYvJhySjophVIab4FMmf00JpgOupucvrFznz gRfZLYWJSwwPbo1DWbJp/LdE8tg3NEu5Pb95WRStlQ== X-Received: by 2002:a17:90a:8b82:: with SMTP id z2mr6395756pjn.25.1611958070273; Fri, 29 Jan 2021 14:07:50 -0800 (PST) MIME-Version: 1.0 References: <20210129194318.2125748-1-ndesaulniers@google.com> <20210129194318.2125748-3-ndesaulniers@google.com> <20210129215158.xs2pidjkex2gtqs7@google.com> In-Reply-To: <20210129215158.xs2pidjkex2gtqs7@google.com> From: Nick Desaulniers Date: Fri, 29 Jan 2021 14:07:39 -0800 Message-ID: Subject: Re: [PATCH v6 2/2] Kbuild: implement support for DWARF v5 To: Fangrui Song Cc: Masahiro Yamada , Nathan Chancellor , Andrew Morton , Sedat Dilek , LKML , clang-built-linux , Linux Kbuild mailing list , linux-arch , Jakub Jelinek , Caroline Tice , Nick Clifton , Yonghong Song , Jiri Olsa , Andrii Nakryiko , Arnaldo Carvalho de Melo , Arvind Sankar Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 29, 2021 at 1:52 PM Fangrui Song wrote: > > On 2021-01-29, Nick Desaulniers wrote: > >diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h > >index 34b7e0d2346c..f8d5455cd87f 100644 > >--- a/include/asm-generic/vmlinux.lds.h > >+++ b/include/asm-generic/vmlinux.lds.h > >@@ -843,7 +843,11 @@ > > .debug_types 0 : { *(.debug_types) } \ > > /* DWARF 5 */ \ > > .debug_macro 0 : { *(.debug_macro) } \ > >- .debug_addr 0 : { *(.debug_addr) } > >+ .debug_addr 0 : { *(.debug_addr) } \ > >+ .debug_line_str 0 : { *(.debug_line_str) } \ > >+ .debug_loclists 0 : { *(.debug_loclists) } \ > >+ .debug_rnglists 0 : { *(.debug_rnglists) } \ > >+ .debug_str_offsets 0 : { *(.debug_str_offsets) } > > Add .debug_names for -gdwarf-5 -gpubnames > > The internal linker script of GNU ld 2.36 will have it. > https://sourceware.org/pipermail/binutils/2021-January/115064.html > > (Compilers don't generate .debug_sup, I added to GNU ld just for > future-proof.). If we don't use `-gpubnames`, do I need to future proof the kernel's linker script? YAGNI? :-P (Since I need to make changes anyways, ok, I will add it to be safe. Thanks for the sugguestion). -- Thanks, ~Nick Desaulniers