diff options
Diffstat (limited to 'core/core.mk')
-rw-r--r-- | core/core.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/core.mk b/core/core.mk index 52ce6885..7ac989be 100644 --- a/core/core.mk +++ b/core/core.mk @@ -40,6 +40,13 @@ cflags_kasan += -fsanitize=kernel-address \ --param asan-instrumentation-with-call-threshold=0 cflags$(sm) += $(cflags_kasan) endif +ifeq ($(CFG_CORE_DEBUG_CHECK_STACKS),y) +finstrument-functions := $(call cc-option,-finstrument-functions) +ifeq (,$(finstrument-functions)) +$(error -finstrument-functions not supported) +endif +cflags$(sm) += $(finstrument-functions) +endif ifeq ($(CFG_SYSCALL_FTRACE),y) cflags$(sm) += -pg endif |