Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1832963pxu; Tue, 24 Nov 2020 09:57:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHjUTA6PsA2LUe0ySzeLqf/mq/e/rCQg9T+1fww2gAZbOR0LEhTed50EZm5WqcogMJI2FB X-Received: by 2002:a17:907:d1f:: with SMTP id gn31mr5314225ejc.192.1606240647965; Tue, 24 Nov 2020 09:57:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606240647; cv=none; d=google.com; s=arc-20160816; b=beq3bnCsAAr1XENlGBZSMtmsPrM5GI9UQVOl+TzPhQT//t3/rvVpaXHDFdPVbXwu2g MNysXNNox2nW9iu30/463742hkHdOTFtRoeypQlcThI/dEAxtBI4qGWG9K2s/R1b0Vrq Llm6TFr93VTlyNfQcWwh4Ty1WUW9K+R9f1G52kb862hjnhggk1bHm+SwUwTQc1ObpP8c m5L+KO5tYPt+Gc/g5t2lSbFpdw/A1Uj0eNSYCR5gk9wZWGqfQQSXdoYkPI5dRrE38Qdr 5chX6zyp6eO/CK5XZrhs/ykuhjqXaFJPTiQvDB4BWA0irJ7iJ2wUXIAnC9tjt4cfUzc5 qwIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=av08sa+2wCSYFpBsaW17f8TO0N5UaGmMPFU3dE71xo8=; b=yGFfINqBhxe4dOHagGSXFzQ4Eey+HFP7Y/dvRX6AzYR1pVp+YUOwxK6v8BXjjGKXLR T9rI1f78HvlrjbZIQQ1fi0kKFwCrc2ppEykMM2r9SxK/X7fajM1dMfesJiJ2wlPrLbNv jsptLSs5E+izjyt+h2qeXNJO1tWz4nTsCfWq5SaxmxqVZDdMnhjTikK+L4jvyeV6nZ1Z Nb8ZNAONCx2aT4ZJnVsN1JWPTHk4N4rAPyq67OR4Cz8IUGItl0NBZFKby/KFbJxXDZmm sl2tj3F/lZk4oRv2y3sj8/umFccQOONhOUpC2zSC08BuCQiEs7pkOv0BT96mHmOH9hxh 9ieQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p14si8672737ejg.51.2020.11.24.09.57.04; Tue, 24 Nov 2020 09:57:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404153AbgKXRvg (ORCPT + 99 others); Tue, 24 Nov 2020 12:51:36 -0500 Received: from gate.crashing.org ([63.228.1.57]:35981 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403999AbgKXRvg (ORCPT ); Tue, 24 Nov 2020 12:51:36 -0500 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 0AOHkEuE024001; Tue, 24 Nov 2020 11:46:14 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 0AOHkDC4024000; Tue, 24 Nov 2020 11:46:13 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Tue, 24 Nov 2020 11:46:13 -0600 From: Segher Boessenkool To: Arvind Sankar Cc: Nick Desaulniers , Masahiro Yamada , Jakub Jelinek , Linux Kbuild mailing list , Linux Kernel Mailing List , linux-toolchains@vger.kernel.org, clang-built-linux , Fangrui Song , Nathan Chancellor , Sedat Dilek , Dmitry Golovin , Alistair Delva Subject: Re: [PATCH v2 3/4] Kbuild: make DWARF version a choice Message-ID: <20201124174613.GW2672@gate.crashing.org> References: <20201104005343.4192504-1-ndesaulniers@google.com> <20201104005343.4192504-4-ndesaulniers@google.com> <20201123232210.GA208735@rani.riverdale.lan> <20201124003357.GR2672@gate.crashing.org> <20201124165602.GA343230@rani.riverdale.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201124165602.GA343230@rani.riverdale.lan> User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 24, 2020 at 11:56:02AM -0500, Arvind Sankar wrote: > On Mon, Nov 23, 2020 at 06:33:57PM -0600, Segher Boessenkool wrote: > > On Mon, Nov 23, 2020 at 06:22:10PM -0500, Arvind Sankar wrote: > > > Btw, is -gsplit-dwarf at all useful for assembler files? > > > > If you invoke the assembler via the compiler, with that flag it still > > creates separate .o and .dwo files (via objcopy invocations as usual). > > Whether that is useful depends on if you have any debug info that can > > be split :-) > > Right, the latter was what I was really asking :) We don't currently > pass -gsplit-dwarf for assembler and I was wondering if that mattered. If there is any debug info in the .s files, it will all end up in the .o file, not a .dwo file. That may matter aesthetically, and it can cost a few bytes of disk space, but it doesn't matter functionally (GDB will search in both places). Segher