Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1066590pxu; Mon, 23 Nov 2020 10:44:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIg6c3QdluldeHCcp13ETyo+Tl8Kuf2Qj0kbUeuC2PXDGRl8s2ja0qq7GDQ8KeYtl97eoE X-Received: by 2002:a17:906:f8c5:: with SMTP id lh5mr926208ejb.77.1606157090857; Mon, 23 Nov 2020 10:44:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606157090; cv=none; d=google.com; s=arc-20160816; b=dM35iZoBwung6ZFMjSzp0fzbLsm+YJiqdFmfguG6YIrKGA9rwMGOBGQsVRXcTk99+f 5bndLiVuFol8jXaFqdZkk9d/EuMZLIxmBTDu14CnYstJOkgsg6f6qUnY40IuOw057uZE pYcxm8I1lccZ7apV/LYF6kh+m3p9W5OhViIFca609nxvjpDLcIrvd9iz9hEEJ/7oTbfm HZ0/qjmRCHBc/TlQgKN0o2nDpn6ZHDvMXA7z7FZr73ZZkWiIMLEcLYNDoyfavXtv4AjE BRxTJG5/Tu7HhhIYTi38YF7LZLb01j5a3mg/89zLj0zOSt9kwzF0+OsmWxW9el5QPddc cg7Q== 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=nJpF2gat8sIt3hy0qTCyIbzDeQ9i0fB1Rc02MDjSdMo=; b=S4nEIKV7xm69hSjW8UEZrno0J/hJv0PwQI+W7jWdnhLlP9MXhjqw2On1a5v+cAyfc9 Mrm37/lawZdht+x04jWL1wdg/htPyDRUH+8PhEkglvdGPnOI7wU2Ae5EsxtpvM3SlaQh Tf0vZvF5rhxHMkrRrnN3p8B95doWWeEyTW2GyrghNPQgk9TIKQluFip+3Jp0wHQZ2x3K voPaxYuO8+MBQVY5XHzGhTcX+Fa+oAmAPA5PxIYQV/S5Hjco9enHJiPflkg0FENuQrpb pGYpse51w9RkTjtkk7X1zDJvLiUoGWHPsIe5Dx/RoklQ7bho5/ds8bb9GK6Jl89+jq/l L1lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Xo+IICOV; 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 h8si7189378edf.565.2020.11.23.10.44.27; Mon, 23 Nov 2020 10:44:50 -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=Xo+IICOV; 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 S2390878AbgKWSmX (ORCPT + 99 others); Mon, 23 Nov 2020 13:42:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388571AbgKWSmW (ORCPT ); Mon, 23 Nov 2020 13:42:22 -0500 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 393D9C061A4D for ; Mon, 23 Nov 2020 10:42:22 -0800 (PST) Received: by mail-pl1-x644.google.com with SMTP id t18so9304725plo.0 for ; Mon, 23 Nov 2020 10:42:22 -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=nJpF2gat8sIt3hy0qTCyIbzDeQ9i0fB1Rc02MDjSdMo=; b=Xo+IICOVGLt3K5DTzifwsDmhU2bw3XpbSOth7zBf0YtrMOcywoA7vKYHOTrNbQ/cy5 Wu2u0j0BYYEhqP97oK87DYkrPmp5aE5r28Gx/xZi9dbyrYZ4A7lXa35F/XQuM6S75qrz 2zy9YncnWdm4MApfAv8i8XhkJDGkKcBUePtwI6OJQI7qszQyxWBO7M23sWV0L3fVSBIy Bf67URSBbdR868+F9oAGnCu/Dx6cL9eAp3FujPNNtjh0HWBAmF54SqBgAlBcs3RupQYa gHkPM7G4I7OLSg1ZIPudEOhX2dUut7Y78zvnlN/GNG9t1y9AYCKPPkV0k7SzmejGqjoZ NCpA== 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=nJpF2gat8sIt3hy0qTCyIbzDeQ9i0fB1Rc02MDjSdMo=; b=jDEIRFj9CIxSdIEWrcF5Yn0xLMN3Z6LDVNMHwkfla3nh2o+gO1RxXJzSCSGUR4ST6P Z4aZMTgeKbKYgy0Dpqwj5KwEV93I3ICN+FbhWzA34klAJT2znBuqrTaY1huXgqf4QWlm LHIw/eT4PwIV1403kKwIf8GW1m6VjrEy13SxoS/f+kGwI69pXiOjRsdESqZVkoJBfI5U n0IF+wkAlTmdIqxezLUKRTW5kyoC7OAdaYMRmevyUHE8zDD5DpeDFHQtN0JWuOdFu5qU 3H3s9wwPBSAzbSk13LDGGamw3F48+6rtjl3LMBhGwKlhwa8bYs+ktgTX5bXKGAFQpi/h o1iQ== X-Gm-Message-State: AOAM531Dazpz4CxVUnu3WzUmFN7mGShKRF0j2kbnFvR7Q59ZzE5Ypppx Y/HLGoOHmWd6ITCXUjVWLTzL+ISBMXhOwocgSV3uYQ== X-Received: by 2002:a17:902:221:b029:d8:f938:b112 with SMTP id 30-20020a1709020221b02900d8f938b112mr702048plc.10.1606156941355; Mon, 23 Nov 2020 10:42:21 -0800 (PST) MIME-Version: 1.0 References: <20201109183528.1391885-1-ndesaulniers@google.com> In-Reply-To: From: Nick Desaulniers Date: Mon, 23 Nov 2020 10:42:10 -0800 Message-ID: Subject: Re: [PATCH v3] Kbuild: do not emit debug info for assembly with LLVM_IAS=1 To: Masahiro Yamada , 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" , Jian Cai Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, I would appreciate any feedback you have on this patch. On Fri, Nov 20, 2020 at 3:58 PM Jian Cai wrote: > > I also verified that with this patch Chrome OS devices booted with either= GNU assembler or LLVM's integrated assembler. With this patch, IAS no long= er produces extra warnings compared to GNU as on Chrome OS and would remove= the last blocker of enabling IAS on it. > > Tested-by: Jian Cai # Compile-tested on mainline (wi= th defconfig) and boot-tested on ChromeOS (with olddefconfig). > > > On Mon, Nov 16, 2020 at 3:41 PM 'Nick Desaulniers' via Clang Built Linux = wrote: >> >> 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=3D1 LLVM_IAS=3D1 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 +=3D -g >> > endif >> > >> > +ifneq ($(LLVM_IAS),1) >> > KBUILD_AFLAGS +=3D -Wa,-gdwarf-2 >> > +endif >> > >> > ifdef CONFIG_DEBUG_INFO_DWARF4 >> > DEBUG_CFLAGS +=3D -gdwarf-4 >> > -- >> > 2.29.2.222.g5d2a92d10f8-goog >> > >> >> >> -- >> Thanks, >> ~Nick Desaulniers >> >> -- >> You received this message because you are subscribed to the Google Group= s "Clang Built Linux" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to clang-built-linux+unsubscribe@googlegroups.com. >> To view this discussion on the web visit https://groups.google.com/d/msg= id/clang-built-linux/CAKwvOdnxAr7UdjUiuttj%3Dbz1_voK1qUvpOvSY35qOZ60%2BE8LB= A%40mail.gmail.com. --=20 Thanks, ~Nick Desaulniers