From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-22.4 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4610C388F9 for ; Mon, 16 Nov 2020 23:41:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7AA1320BED for ; Mon, 16 Nov 2020 23:41:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="DaGY52y2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731393AbgKPXl4 (ORCPT ); Mon, 16 Nov 2020 18:41:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729638AbgKPXl4 (ORCPT ); Mon, 16 Nov 2020 18:41:56 -0500 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99234C0617A6 for ; Mon, 16 Nov 2020 15:41:54 -0800 (PST) Received: by mail-pg1-x541.google.com with SMTP id j19so7847585pgg.5 for ; Mon, 16 Nov 2020 15:41:54 -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=q6oT/iaJpuUzbJsO3ZOoSLXJmJdPmOezInw0gF4IJ28=; b=DaGY52y2S53RfC36H5AiJH5A419IlvPKioPWUhj1fz1ee9KTimKZDJrmWgb9v776ET /gwm9XOeX0BJZikJIRY2/UxXgYgquVvhQpNrFV9XiB3qeL7RefN2AprNWMpLRtxOxzh/ cEls2g7rxSNDVIvusRCwaQNeTXxi720q64jwxbjjYoBdqrs14vxzI0lX+DaArhZWJvkT WUQOjJO9Sx2tTPiyKzbVFjdPpaXTpnQN+CsR7FFBk1TEPMkBAqU6nHxQ/P0Zl6adCwuQ iWqm5vwTuaud25e3h4ZXeTqdYz5ypSBmKJ2FlwNnr1RTathlitsBCuYUyGKuRDxrr+HC AKwA== 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=q6oT/iaJpuUzbJsO3ZOoSLXJmJdPmOezInw0gF4IJ28=; b=qoP35siSVLHxPu3UudSZS3ryWsnUUMZADLX9SLZTtLkU0UbiUF4ezKCfKQq3GItv3W N5taeHqQ8hliWB+NfX/ETYgK7saxz6vIvn2qGcRIFTHsSaXcKBsfrZyGMmL1i//YTWFI L+EvCU484fLPyOihtYugmV2uGMsstgNmtnNOurSnKGR8bGXBTbZ9K0qmhnQ1j5moTKqV UuCuzJKBZ+Xzr5roxLH9uvY+G3xfs0dl5f0OC2vjHsV3T0sJJu/dSCLjXk18oI5fJr1H 5jkkmtf0akB+eiB087tLIh8nvDBHfpqa/4ehrxADm4lglbE6TqON/QSaRcXrrVtiUWst m9FQ== X-Gm-Message-State: AOAM532KI6tgMYZLu609/qrMbhsqUxnVq9mJ/KDBEp3G5AspHrG2i8dn RxVCZC7jQl6WtbHlsjoHqAq2ZllkAT585jjm/rRVYQ== X-Google-Smtp-Source: ABdhPJwVHouTg7EVX4W0i+4378wI412Q2tEtRHUYdk7lrZpa4Bigm1LcPNbScK1zq4PEp4tG+BUF6n3Mdrpfjn0WHQs= X-Received: by 2002:a17:90b:d91:: with SMTP id bg17mr1379665pjb.25.1605570113934; Mon, 16 Nov 2020 15:41:53 -0800 (PST) MIME-Version: 1.0 References: <20201109183528.1391885-1-ndesaulniers@google.com> In-Reply-To: <20201109183528.1391885-1-ndesaulniers@google.com> From: Nick Desaulniers Date: Mon, 16 Nov 2020 15:41:42 -0800 Message-ID: Subject: Re: [PATCH v3] Kbuild: do not emit debug info for assembly with LLVM_IAS=1 To: Masahiro Yamada Cc: 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 , "# 3.4.x" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, have you had time to review v3 of this patch? On Mon, Nov 9, 2020 at 10:35 AM Nick Desaulniers wrote: > > Clang's integrated assembler produces the warning for assembly files: > > warning: DWARF2 only supports one section per compilation unit > > If -Wa,-gdwarf-* is unspecified, then debug info is not emitted for > assembly sources (it is still emitted for C sources). This will be > re-enabled for newer DWARF versions in a follow up patch. > > Enables defconfig+CONFIG_DEBUG_INFO to build cleanly with > LLVM=1 LLVM_IAS=1 for x86_64 and arm64. > > Cc: > Link: https://github.com/ClangBuiltLinux/linux/issues/716 > Reported-by: Dmitry Golovin > Reported-by: Nathan Chancellor > Suggested-by: Dmitry Golovin > Suggested-by: Nathan Chancellor > Suggested-by: Sedat Dilek > Reviewed-by: Fangrui Song > Reviewed-by: Nathan Chancellor > Signed-off-by: Nick Desaulniers > --- > Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Makefile b/Makefile > index f353886dbf44..7e899d356902 100644 > --- a/Makefile > +++ b/Makefile > @@ -826,7 +826,9 @@ else > DEBUG_CFLAGS += -g > endif > > +ifneq ($(LLVM_IAS),1) > KBUILD_AFLAGS += -Wa,-gdwarf-2 > +endif > > ifdef CONFIG_DEBUG_INFO_DWARF4 > DEBUG_CFLAGS += -gdwarf-4 > -- > 2.29.2.222.g5d2a92d10f8-goog > -- Thanks, ~Nick Desaulniers