Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3462602pxb; Mon, 16 Nov 2020 15:43:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoa2zDZ3yIPMlufOUzaxqcJUlNGuZA+DL4Ju87xXvy4kHXEMp9/NoTM4wGHzPM6zOqbKDx X-Received: by 2002:a17:906:82c4:: with SMTP id a4mr16079398ejy.131.1605570215695; Mon, 16 Nov 2020 15:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605570215; cv=none; d=google.com; s=arc-20160816; b=d2f7sPAh3C+/Bdc76TIu+oUCL3wVmZDDmgt9ErZjZxVEMGh05NYvpNHyDnwE3EGcCz JoUCe7BGgjd4vccddhqbv7B7J80KuNMzra/e5nOKkHE7Xcv61wKiKG8Wu9shNE2KiuMM uAQC8rJvEXuEDMRbcU6O8s/GbZq04+yZIpIH2AqGxWLAbxtb0yhi8bWZ6UqUyvc/8pSE CPvcG5OKB1Rqoh2zhPPQDicJqlg3pXoCo77hsglBixPuOuoMuWCB5zU8P4HY8xLLg9I0 TsSoliBJuMm3meppfdc4a0gNfEEIE+LFXFA8ty2qGoRoqQuZsM3AzNfoYuv6rVKICvSD V5aw== 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=q6oT/iaJpuUzbJsO3ZOoSLXJmJdPmOezInw0gF4IJ28=; b=ZwwRZJ2lDp69X9XRHNBP+qoWqZO032QkfFCwa2DMosGcupKYUEZHNDYdJtGkpO+WHE U0mFkTWP0+u2Aht8yzm9sJrUEMR1yoAjRi+hHSA2uX+LoG8r0M26kHAZHdk6nbfC31ll QfIYaVrjG1QDLD/R2Fz2k0o8m5SGUOlew97TwlysBx5f67jepEBvIOUpC9MWm+11AqT5 RcTbXWbprnL2w8C6dzywrz+VOMjCryVKOaCtYaYg0gLgHBtvjAO4u8FIcafek+tt1Ql4 NKczTFg8rwgAvF3ICvFH91OnUQh17wrha9JBm9cupzq4aDE14c9ME4BLzNd0qwFcU6zn LmIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DaGY52y2; 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 mb18si236458ejb.284.2020.11.16.15.43.13; Mon, 16 Nov 2020 15:43:35 -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=DaGY52y2; 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 S1731382AbgKPXl4 (ORCPT + 99 others); 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-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