Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2220287pxb; Fri, 29 Jan 2021 17:18:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2IAlby/xnPPWptjo0lSDtKBEIKw1WD6SqxeEqPDt+AZ8YF94USR/KJPF87midVVcsYqM4 X-Received: by 2002:a17:906:408:: with SMTP id d8mr7154491eja.280.1611969492139; Fri, 29 Jan 2021 17:18:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611969492; cv=none; d=google.com; s=arc-20160816; b=fmiJC9vG7fkz1/BbIuop89NMG04W7UwaRH9M3haSq3IColrxeMqI/bbQGwN+GQrzj9 25BdWylFaZlDLlsJG5vp2OPeggOoOLDg+m5Z0wfvattt4azX0fU3sKj41ckVp8bSMlcX 5IaWR6sIIjIZN5ReJzftd+P14RuUHmTC942GmZ8AJjbPAsUEhBFuK6fH9ZjGYjkI4ogU AcjHM272TDfneCMOiY1JR+4jGfucYksCOF1F+jzKJvxUMHKQSl0QHmRxUOSZt+lNr5vP 5rxKA9siBdBXmxH8lTv7LCXdl0bvbQ87lb7wC6I8tQwvnA0Z7SQY50wl8Cx8zig8n86e pQrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vY5qfUxdXCT/eobTl+36hSbsQCTFZU3e/5axsUhR+gY=; b=jMvMDXveg4ng6tjbjNbbvFGwQCcUUdoKmrLAFX0YhqlaUAHJnin9AMWk+wbnY90CIc Z673aAoKQQcSD1opafnc4lFZwXvryk06151l2hED1zR5Qp4saQ6Agogag3QKfHY45lPC iChtB8y79e9uGYQY9PUdRRph1OiJHSF9xBj6ncd5cXlhaE446+hL6k+P9r0coMQlA8D0 iDqfGI8QIFollPY7DPs1BLgLzTTkPPSVFblJ2/4iUI+sy2E7wYIox//fNWujO5sp6KIx rhE2CFiip2wObeL0DtCkJv5lCgakhEG3ZHCxC7Ff4Q+m8R8dur7Ra0A2YFBPYxDhFoOY zXtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=F9ABbjx9; 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 e24si5738842ejd.8.2021.01.29.17.17.47; Fri, 29 Jan 2021 17:18:12 -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=F9ABbjx9; 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 S232968AbhA3BPp (ORCPT + 99 others); Fri, 29 Jan 2021 20:15:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233071AbhA3A7Z (ORCPT ); Fri, 29 Jan 2021 19:59:25 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B08DC06178A for ; Fri, 29 Jan 2021 16:58:30 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id w14so7303317pfi.2 for ; Fri, 29 Jan 2021 16:58:30 -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:content-transfer-encoding; bh=vY5qfUxdXCT/eobTl+36hSbsQCTFZU3e/5axsUhR+gY=; b=F9ABbjx9K8dh+DHwtMVe1pNmo1PfZnrNKt7BOp/DfjurjXFLxFKYJibjtIR0SgqvgQ Eh3ncYjaLS1o8k0Y3M8FzZe6kVZR8zbkj9mqIGl4iP0Mi9zAG02//q2gbf0FVFDP1Kb0 JnSB5OiM1EXI14+qYkx6D0zO05icm48bzeRqO5DObQnYOcWCBJsqvHl9CeRQk25KWkze vXJiDqsh8vscqg96wHrDVLHq04dDmO7u4tVMLge+j5pybhGyOlDeyzJ4l4TGb3xO+94q BOZaBaya8hYeNjjd8JlZIs/21v2uTWMxuRnplN8PZNyFX2iylIn5GwDPyDZamNq6lW4K 2YJA== 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:content-transfer-encoding; bh=vY5qfUxdXCT/eobTl+36hSbsQCTFZU3e/5axsUhR+gY=; b=G1N5SGfvAAAxGH1SEr75pESqw+8dS3UOHPGIH2w9l0ZQB+NRB5iGcmBe8eQVvkHXP2 7ztfuiAcP2KxhRtBHFMhVbM8J2kkiq7dmixgz/nhh5TYJRymiZ8RQ7c7eF1PpjoabLa6 0uIxgJa4OS0sVFiTSvZvUXjM+9EJ50CrBGEdsfPK6prtDwkF2vGD9cReuWbVop9+6q8Y UQSPFecYaTX3Kd9bVJ1PMY/45ZqiddIXj/kWKihoBZphI5RbONQ3q1GRhBCyippVZqVC R8dCw5bfb1uKkMFNvEZroTStuWF66JG/BSoIEWuENDFntEDHeIQlcMZFJ/KgamR80JhG bHXw== X-Gm-Message-State: AOAM532QcJGoxWtrmWF12DIi3EOsc++vYSwQqkKs7uW+jzQ5SkJx8ytE ge6f73Ox1Ia33Ai/oR6Tp9bH+9wU/jjtVuNbEO3hjw== X-Received: by 2002:a65:628a:: with SMTP id f10mr6909626pgv.380.1611968309986; Fri, 29 Jan 2021 16:58:29 -0800 (PST) MIME-Version: 1.0 References: <20210129194318.2125748-1-ndesaulniers@google.com> In-Reply-To: From: =?UTF-8?B?RsSBbmctcnXDrCBTw7JuZw==?= Date: Fri, 29 Jan 2021 16:58:18 -0800 Message-ID: Subject: Re: [PATCH v6 0/2] Kbuild: DWARF v5 support To: Nick Desaulniers , Sedat Dilek Cc: Masahiro Yamada , Nathan Chancellor , Andrew Morton , LKML , Clang-Built-Linux ML , Linux Kbuild mailing list , linux-arch , Jakub Jelinek , Caroline Tice , Nick Clifton , Yonghong Song , Jiri Olsa , Andrii Nakryiko , Arnaldo Carvalho de Melo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 29, 2021 at 4:46 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Fri, Jan 29, 2021 at 4:08 PM Sedat Dilek wrote= : > > > > On Fri, Jan 29, 2021 at 8:43 PM Nick Desaulniers > > wrote: > > > > > > DWARF v5 is the latest standard of the DWARF debug info format. > > > > > > DWARF5 wins significantly in terms of size and especially so when mix= ed > > > with compression (CONFIG_DEBUG_INFO_COMPRESSED). > > > > > > Link: http://www.dwarfstd.org/doc/DWARF5.pdf > > > > > > Patch 1 is a cleanup that lays the ground work and isn't DWARF > > > v5 specific. > > > Patch 2 implements Kconfig and Kbuild support for DWARFv5. > > > > > > > When you will do a v7... > > > > Can you look also at places where we have hardcoded DWARF-2 handling... > > Ah, sorry, I just saw this now, after sending v7. Can we wait to > purge DWARF v2 until after we have DWARF v5? > > In fact, if they are orthogonal like I suspect, why don't you send > some patches and I will help you test them? > -- > Thanks, > ~Nick Desaulniers Basically the distinction is just between DWARF v2 .debug_line and DWARF v5 .debug_line . (-gdwarf-4 adds an extra maximum_operations_per_instruction (constant 1) compared with -gdwarf-2 but that can mostly be ignored). Refinement among -gdwarf-[234] just clarifies things and is not going to affect debugging experience in any case. So I agree with Nick that it can be done separately. Note: such clarification can make things a bit ugly because binutils before 2020 does not recognize -gdwarf-[345]. --=20 =E5=AE=8B=E6=96=B9=E7=9D=BF