Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2139791pxb; Fri, 29 Jan 2021 14:29:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMxjuYAnMAQtmDRQGN1tcCVghs3nK72pWDiC5TpS2cCj8LqYkLHTatYwD/tLt/v3XVwxfO X-Received: by 2002:a05:6402:34c5:: with SMTP id w5mr7702109edc.65.1611959367037; Fri, 29 Jan 2021 14:29:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611959367; cv=none; d=google.com; s=arc-20160816; b=nuPBz8BAB0e4EUQrtqSLhuO6VgRKu2I4kryK+uEsEOZAL7fulN1f8LjYTKyCuP4Eo6 stipYbzP0029DDlWzjAwR5qDnWXIALZfO7p1pGVzs+o5X+qfkn8827XPfFwbCFuellNP AsDpjyRA8kxY+H2TKe2D7vACbNG8QPHdEgf/0bW/bIaCxjJqR7hztwPiTW28SNiL2K/f 55fV6PMxqfNrYvFAeEvn1BP3PRMrICb+jyTVVs/IcOYyY09iSXXSrY/NNzQmSQE8RAI4 1oi1/Vv4bBdQOZvW0jhyt/RmQvQrv+mJM9Fs7DBw/af/WmdR3UqzfH3+6duZEFJc4zPx 1OxQ== 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=n9U4McTABtuqtNOqLAuCMtCG5shXKI8/Zm0sjdl2VjY=; b=CDHvPoEsjvi+ZapNXgQDwR8LUC1mhVe0T96Hnve+JbJLz/AFMAVV/AzhI6/5kjRLBc vwIK/mejPWlet0zof7aecCtZYAkRPm5kbBQn/K0T00PtlKfiDzMTQKMCbkh9tK9uT4Br XC0a9VT2SICXxJmVAFGam63P00wmPIhrlUTBtm0C28bEZr7yFjsfXMnLBy6Pjc0akN/w t3rQd+OS6Ipxw7O8pBHPj/kOjX9fsI1CrmdVz4Swqmootn4aYFWrjAgz+EgB/RofOIS4 +fZpmOphCTKQKkSi4PXy6UnLPe/9jOZfXKywcTh8xopWe/CCZ+pAS0uaOVaD5IJi8bAq GWZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FUWhIb9F; 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 co11si6067378edb.211.2021.01.29.14.29.02; Fri, 29 Jan 2021 14:29: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; dkim=pass header.i=@google.com header.s=20161025 header.b=FUWhIb9F; 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 S231169AbhA2W2C (ORCPT + 99 others); Fri, 29 Jan 2021 17:28:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbhA2W2B (ORCPT ); Fri, 29 Jan 2021 17:28:01 -0500 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E893AC061574 for ; Fri, 29 Jan 2021 14:27:20 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id m6so7122156pfk.1 for ; Fri, 29 Jan 2021 14:27:20 -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=n9U4McTABtuqtNOqLAuCMtCG5shXKI8/Zm0sjdl2VjY=; b=FUWhIb9FG/USCOO4QZJ5Qrq0vYZm/TwgDTrDBUSJdTUUik+KQRz+nMV923YVEU58O4 OtA8qDFn6GnX+cW9FR3ZXKzz9ZmtTt9e8AqCN3awjtAaFsrIsfx83fwH5ezyf1tlCsdr KPza42VJCugXMvuFQvUcl253ilKa/HSE3nxybsZ9Pg7t0JtvR5QJEyHFN/QzBwvcUEeT fgJWMnXSUmhcFcyDEJEBrMyhzaOgjvzwmbPDLQciQlMgF+oFttvTsJHY0FpN9w2rK/+H p85caq1P+P0Q24BosdcrnVH2MHmjRis3RopRcfCVXOMGXl/vT4e19QeG2HChK+L1wszX aUCg== 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=n9U4McTABtuqtNOqLAuCMtCG5shXKI8/Zm0sjdl2VjY=; b=stICmbnno4JE5kvClKPhgRUguakPi+9CSY6ucwwcXpm9ZHACtWUrnpt2lxc1rqT7ts h3NTj/XR4YkTkl2EPBszp3d34i/5FdvRv2+/hqvw3vuMe9mX0WhkVurByBXw+KzdDAJ6 tKO7JwKlfkSCb/s0zJyzIQG5U8VcwaiCVNgKExB30FYm7bNO0wWXn/jXA9kvrrzQH4nX O+jtHxgzAQpHWOOGyR1VKLQzAvO83Q2+vCb/eOZSwYnVckp6bUVw2KamkJZaYwS0PIbY fL5bpF6UKyu9B2OMpFHaGnlpe1wsuEmOr8AwbY7ADpQPWAp8xLAru7LwQFJp7VQhzjDX k8MA== X-Gm-Message-State: AOAM532vzPpVEtQh7IEmYLEtAxiYwkN2I2XqPHNXND6bBmRVkNO5t/eA Olq10Ow9/aKYQ6dPqU2cj4d0t9Gtz9veLye0dVs0gg== X-Received: by 2002:a63:7e10:: with SMTP id z16mr6729496pgc.263.1611959240285; Fri, 29 Jan 2021 14:27:20 -0800 (PST) MIME-Version: 1.0 References: <20210129194318.2125748-1-ndesaulniers@google.com> <20210129194318.2125748-3-ndesaulniers@google.com> <20210129205702.GS4020736@tucnak> <20210129211102.GT4020736@tucnak> In-Reply-To: <20210129211102.GT4020736@tucnak> From: Nick Desaulniers Date: Fri, 29 Jan 2021 14:27:09 -0800 Message-ID: Subject: Re: [PATCH v6 2/2] Kbuild: implement support for DWARF v5 To: Jakub Jelinek Cc: Nick Clifton , Sedat Dilek , Masahiro Yamada , Nathan Chancellor , Andrew Morton , LKML , Clang-Built-Linux ML , Linux Kbuild mailing list , linux-arch , Fangrui Song , Caroline Tice , 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:11 PM Jakub Jelinek wrote: > > On Fri, Jan 29, 2021 at 01:05:56PM -0800, Nick Desaulniers wrote: > > > Wasn't that fixed in GAS? > > > https://sourceware.org/bugzilla/show_bug.cgi?id=27195 > > > > $ make LLVM=1 -j72 defconfig > > $ ./scripts/config -e DEBUG_INFO -e DEBUG_INFO_DWARF5 > > $ make LLVM=1 -j72 > > ... > > /tmp/init-d50d89.s: Assembler messages: > > /tmp/init-d50d89.s:10: Error: file number less than one > > /tmp/init-d50d89.s:11: Error: junk at end of line, first unrecognized > > character is `m' > > > > which is https://sourceware.org/bugzilla/show_bug.cgi?id=25611. > > > > $ as --version | head -n1 > > GNU assembler (GNU Binutils for Debian) 2.35.1 > > > > Maybe GAS should not need to be told -gdwarf-5 to parse these? Then > > we would not need to pass -Wa,-gdwarf-5 via clang with > > -no-integrated-as. > > That is what sw#27195 is about, just try current binutils 2.35, 2.36 or > trunk branches. Ok, yep, I can confirm. I just built ToT binutils and I no longer need to specify -Wa,-gdwarf-5 when building with clang with -no-integrated-as. I will update scripts/test_dwarf5_support.sh to check for that and update the comments/documentation/commit messages to say binutils 2.35.2+, link to https://sourceware.org/bugzilla/show_bug.cgi?id=27195 instead, then drop hunk that was passing -Wa,-gdwarf-5. -- Thanks, ~Nick Desaulniers