Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp926198pxb; Tue, 3 Nov 2020 16:55:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRIUuE7Pyv8kTA3lbT0IKvh/oqgTY5ym+Qh8gQMznWyW6yUjv8IDqdiTJ7laaLQKOL8Zx3 X-Received: by 2002:a17:906:2512:: with SMTP id i18mr17822653ejb.184.1604451341023; Tue, 03 Nov 2020 16:55:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604451341; cv=none; d=google.com; s=arc-20160816; b=BgrhHJqfl2Kx943hL3OhyroQBsRsyjsM3lo9ONsVpS1TbHHzxBTpMyIaij54fq3yJl jQBl/5IiBAT4wX1iiI6Db8bi57RbM9r/ypcw30/RAsFCSsA2bJKkyRIH5byBDunr6C17 qIjrYUfqkOI6/PI0/DuL9n+688I1FofVuLYPtlUatiOJ3FoJlRIiEOg1ovZ8rspg+Key CRsXOpGnb/z67pT0JWoHgycRZngfyykyRohoEDqusHy7Yv8xOYJjWYnID7BbzOzSpb2n QyqdJUYNTaygNhxt1ugls/UJFinPW092H7o+gEWyu6fZrQj7fYjUt1Y1BBT/Yni+qnXH JkIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=ER2UhxLP/araVfLtlLjju4GHW3AHwOn+yA1clWZujmw=; b=ivgay6mvRGgfMhsUTvLICF2vGeEwvE6uSXIHZLTH3OUOxShZ1BzjGtD4RLs3jDgeqZ ySJn0BM8fQ5V7MgURn0QmgYiGC6eHdfXixfBTGaNB10KXy1IQVNGIRHgScuulRn09WCv jA/yrd2UWOB6alKyGwlUMZzm32XsadX+6h8cWFFg/ycZZqAgudNa5hp8tP9kpwgheE1Y NdFjfzGEqE/4fAJh6lMdkTrmzVl6n2KR5p5zyPncv2D7Z/JaSroF+3OJp2eQBaXvmmxw 3MvR4AQnr8VUWxtvjC95g6t5/PQvAVRAq8r4P1BbUKbMA3KV1t1cHxNxbNvZ4plox0wm T2ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lwlMImIc; 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 by24si394030ejc.347.2020.11.03.16.55.17; Tue, 03 Nov 2020 16:55:41 -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=lwlMImIc; 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 S1730083AbgKDAx6 (ORCPT + 99 others); Tue, 3 Nov 2020 19:53:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729763AbgKDAxv (ORCPT ); Tue, 3 Nov 2020 19:53:51 -0500 Received: from mail-qk1-x749.google.com (mail-qk1-x749.google.com [IPv6:2607:f8b0:4864:20::749]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ADC3C0401C2 for ; Tue, 3 Nov 2020 16:53:51 -0800 (PST) Received: by mail-qk1-x749.google.com with SMTP id t67so8674464qke.10 for ; Tue, 03 Nov 2020 16:53:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=ER2UhxLP/araVfLtlLjju4GHW3AHwOn+yA1clWZujmw=; b=lwlMImIcTQAVaDbbenxl4PNIkFP0dw+hbwp6OPrJqtdRsKWXuTgdl+u+4dhuUI9M+w x+3kd70TRUibgU+0GOHIFaKZr00XWg+cGBVEpYq/B8lnowm6gyWkbN0a1cLg91eXwAVT ztcClXf8oIXQbBLrv/K7KMCU77lKmpzhn3Se1tRSOZJIV+g5dqpMqe2utqEE8VwYApuu sKPk7wzbiAa3PPrObYdO6e8w984ykDAbIm0b4O3um+YcDP/H0VDN1KesSSD7lLKI5u+X pYiPLSJqQCY0vM7iCiR9ZoPYAp9JlLSkINKgtzlOuH+JixRCUkCIT90FMGjY5RmZiocQ 3o+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=ER2UhxLP/araVfLtlLjju4GHW3AHwOn+yA1clWZujmw=; b=PJstLojZzgkUO90syS3nwzEQXk2uaB/8xyvbSZYARfpgf9C2retz445av0bY1RW1yI VWJGIj1JkdWxMpdiVkx6BfGdgEr18xfAzfHqIU8pwYks6Yehe12CHthCZaq1D1hIfYkw e/QlANW9chF3ZTIAqY0wtXwWin2xTkcfCrlwsknobz5lQwvTWIO3Eqd1cTTlvg2ENPgu Kboi99a1yA8XPhxW03J7OnqmF5QOf0GCVS2BIuKdEQI0a83XVcrOUzdvoADevm6KOnyz teorx60Uzuif2kC8oCtH0bGjJUvJYydUeSu42TCUIxDo7C9vvnpk/+UyjkhIfYf+ljbU CFlg== X-Gm-Message-State: AOAM533MkVPzBocgrwvweRSQsJi/ZGUSyhHemkmyAJLbBlbQVeBbsZG+ UYU1jxkiGNFzxJ69cl8kQqngLAImjEpei7AoDDk= Sender: "ndesaulniers via sendgmr" X-Received: from ndesaulniers1.mtv.corp.google.com ([2620:15c:211:202:f693:9fff:fef4:4d25]) (user=ndesaulniers job=sendgmr) by 2002:a0c:fac6:: with SMTP id p6mr30296428qvo.5.1604451230411; Tue, 03 Nov 2020 16:53:50 -0800 (PST) Date: Tue, 3 Nov 2020 16:53:41 -0800 In-Reply-To: <20201104005343.4192504-1-ndesaulniers@google.com> Message-Id: <20201104005343.4192504-3-ndesaulniers@google.com> Mime-Version: 1.0 References: <20201104005343.4192504-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog Subject: [PATCH v2 2/4] Kbuild: do not emit debug info for assembly with LLVM_IAS=1 From: Nick Desaulniers To: Masahiro Yamada Cc: 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 , Nick Desaulniers , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. This will be re-enabled for new 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: Nathan Chancellor Suggested-by: Dmitry Golovin Suggested-by: Sedat Dilek Signed-off-by: Nick Desaulniers --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index f353886dbf44..75b1a3dcbf30 100644 --- a/Makefile +++ b/Makefile @@ -826,7 +826,9 @@ else DEBUG_CFLAGS += -g endif +ifndef LLVM_IAS KBUILD_AFLAGS += -Wa,-gdwarf-2 +endif ifdef CONFIG_DEBUG_INFO_DWARF4 DEBUG_CFLAGS += -gdwarf-4 -- 2.29.1.341.ge80a0c044ae-goog