Skip to content

Commit 5eb39cd

Browse files
melverakpm00
authored andcommitted
kcsan: avoid passing -g for test
Nathan reported that when building with GNU as and a version of clang that defaults to DWARF5, the assembler will complain with: Error: non-constant .uleb128 is not supported This is because `-g` defaults to the compiler debug info default. If the assembler does not support some of the directives used, the above errors occur. To fix, remove the explicit passing of `-g`. All the test wants is that stack traces print valid function names, and debug info is not required for that. (I currently cannot recall why I added the explicit `-g`.) Link: https://lkml.kernel.org/r/[email protected] Fixes: 1fe84fd ("kcsan: Add test suite") Signed-off-by: Marco Elver <[email protected]> Reported-by: Nathan Chancellor <[email protected]> Cc: Alexander Potapenko <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 2e08ca1 commit 5eb39cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/kcsan/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ obj-y := core.o debugfs.o report.o
1616
KCSAN_INSTRUMENT_BARRIERS_selftest.o := y
1717
obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o
1818

19-
CFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer
19+
CFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -fno-omit-frame-pointer
2020
CFLAGS_kcsan_test.o += $(DISABLE_STRUCTLEAK_PLUGIN)
2121
obj-$(CONFIG_KCSAN_KUNIT_TEST) += kcsan_test.o

0 commit comments

Comments
 (0)