Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
12345678910111213141516171819202122# SPDX-License-Identifier: GPL-2.0
ifdef CONFIG_GCC_PLUGIN_STACKLEAKkstack-erase-cflags-y += -fplugin=$(objtree)/scripts/gcc-plugins/stackleak_plugin.sokstack-erase-cflags-y += -fplugin-arg-stackleak_plugin-track-min-size=$(CONFIG_KSTACK_ERASE_TRACK_MIN_SIZE)kstack-erase-cflags-y += -fplugin-arg-stackleak_plugin-arch=$(SRCARCH)kstack-erase-cflags-$(CONFIG_GCC_PLUGIN_STACKLEAK_VERBOSE) += -fplugin-arg-stackleak_plugin-verboseDISABLE_KSTACK_ERASE := -fplugin-arg-stackleak_plugin-disableendif
ifdef CONFIG_CC_IS_CLANGkstack-erase-cflags-y += -fsanitize-coverage=stack-depthkstack-erase-cflags-y += -fsanitize-coverage-stack-depth-callback-min=$(CONFIG_KSTACK_ERASE_TRACK_MIN_SIZE)DISABLE_KSTACK_ERASE := -fno-sanitize-coverage=stack-depthendif
KSTACK_ERASE_CFLAGS := $(kstack-erase-cflags-y)
export KSTACK_ERASE_CFLAGS DISABLE_KSTACK_ERASE
KBUILD_CFLAGS += $(KSTACK_ERASE_CFLAGS)