Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2815152pxu; Mon, 14 Dec 2020 11:31:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrETmRq89bcp3JT5b6IKnjtfXbrThV5arNwXX56YjAmt8z3R8aVZx470EKgaFLhJcAOWtG X-Received: by 2002:a05:6402:2cd:: with SMTP id b13mr7514599edx.199.1607974265775; Mon, 14 Dec 2020 11:31:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607974265; cv=none; d=google.com; s=arc-20160816; b=lHg7Zi/9IavrBSySGrQnxq1n7ecOtZpTkk06ZL2tuHmou5aEmg+kTPwauKDdJoszeH e5V2TGMCGH6CUJitHEoy/3jCqdXX72lPO+R8FKwECyRWfvp5OmFvdkcRWvG8wZIImfFh D+RJwimO7L9ecWxDKKqhVUttrHwYpTb/P4T1bIHI1le1fF5pbDbqkeKwx38GnYbKbuOa AHe65r11Cz+Jb2gkf+wMAojjHC6hFxMrFj1DKxBvmMC8/VEwAoOFCSrqO26uiCjSbzta aUn+qSC9bT7kgDOFWjZ64yhaHrsepULqeeckwjETcnXPTkI2hMa6lOTR6vfcbECdPxOH /ImQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=NL67U0oS0Vc2EgK++HFYlqzhhcg9HyIyUiBQuDZXJhY=; b=lYkQjswjWk77nsKrOt+vs0K6F0ObBpGH3PY/DvElkAtwbLO13j2oaUIavTeN7yG+UM pBrc1Fkar/pnmgSfWncZTIJGKPyPq9Zdxf+rzrLU4LWEWK06/vyCvlegZhB8CN/t0e4p wpelg5NEnfUZhR3u6kFI2a/PLjM+wbZ4EQTtOVYHu4K6KlzwTKvmmLdP7za5OgZs4AVE Ul44wB57QB7G7dWO0blOYbRC6LVcVHOovfB9Cfixomi8YvLbHPvV6r+ZvjydSqRHmqyi CtHQ6TfzKUMgQcukSlLy7/Qijw1gfmRAOopHgaBb2FTDGBNcngwnYeAy8a1Ga9CzR90J VaQw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p23si3195531ejf.90.2020.12.14.11.30.40; Mon, 14 Dec 2020 11:31:05 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502658AbgLNT1s (ORCPT + 99 others); Mon, 14 Dec 2020 14:27:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:47328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408364AbgLNRgz (ORCPT ); Mon, 14 Dec 2020 12:36:55 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Golovin , Nathan Chancellor , Sedat Dilek , Fangrui Song , Nick Desaulniers , Masahiro Yamada Subject: [PATCH 5.9 001/105] Kbuild: do not emit debug info for assembly with LLVM_IAS=1 Date: Mon, 14 Dec 2020 18:27:35 +0100 Message-Id: <20201214172555.349616463@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201214172555.280929671@linuxfoundation.org> References: <20201214172555.280929671@linuxfoundation.org> User-Agent: quilt/0.66 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nick Desaulniers commit b8a9092330da2030496ff357272f342eb970d51b upstream. 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 Signed-off-by: Masahiro Yamada [nd: backport to avoid conflicts from: commit 695afd3d7d58 ("kbuild: Simplify DEBUG_INFO Kconfig handling")] Signed-off-by: Greg Kroah-Hartman --- Makefile | 3 +++ 1 file changed, 3 insertions(+) --- a/Makefile +++ b/Makefile @@ -821,8 +821,11 @@ DEBUG_CFLAGS += -gsplit-dwarf else DEBUG_CFLAGS += -g endif +ifneq ($(LLVM_IAS),1) KBUILD_AFLAGS += -Wa,-gdwarf-2 endif +endif + ifdef CONFIG_DEBUG_INFO_DWARF4 DEBUG_CFLAGS += -gdwarf-4 endif