Skip to content
Commit 018b05e0 authored by Nick Desaulniers's avatar Nick Desaulniers Committed by Greg Kroah-Hartman
Browse files

Kbuild: do not emit debug info for assembly with LLVM_IAS=1

commit b8a90923 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: <stable@vger.kernel.org>
Link: https://github.com/ClangBuiltLinux/linux/issues/716


Reported-by: default avatarDmitry Golovin <dima@golovin.in>
Reported-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Suggested-by: default avatarDmitry Golovin <dima@golovin.in>
Suggested-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Suggested-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
Reviewed-by: default avatarFangrui Song <maskray@google.com>
Reviewed-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
[nd: backport to avoid conflicts from:
  commit 10e68b02 ("Makefile: support compressed debug info")
  commit 7b169944 ("Makefile: Improve compressed debug info support detection")
  commit 695afd3d ("kbuild: Simplify DEBUG_INFO Kconfig handling")]
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2bff021f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment