Skip to content

Commit 0ee2f05

Browse files
nickdesaulniersgregkh
authored andcommitted
Makefile.debug: re-enable debug info for .S files
This is _not_ an upstream commit and just for 5.15.y only. It is based on commit 32ef9e5 upstream. Alexey reported that the fraction of unknown filename instances in kallsyms grew from ~0.3% to ~10% recently; Bill and Greg tracked it down to assembler defined symbols, which regressed as a result of: commit b8a9092 ("Kbuild: do not emit debug info for assembly with LLVM_IAS=1") In that commit, I allude to restoring debug info for assembler defined symbols in a follow up patch, but it seems I forgot to do so in commit a66049e ("Kbuild: make DWARF version a choice") Fixes: b8a9092 ("Kbuild: do not emit debug info for assembly with LLVM_IAS=1") Signed-off-by: Nick Desaulniers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 117825e commit 0ee2f05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,9 @@ else
870870
DEBUG_CFLAGS += -g
871871
endif
872872

873-
ifndef CONFIG_AS_IS_LLVM
873+
ifdef CONFIG_AS_IS_LLVM
874+
KBUILD_AFLAGS += -g
875+
else
874876
KBUILD_AFLAGS += -Wa,-gdwarf-2
875877
endif
876878

0 commit comments

Comments
 (0)