Skip to content

Commit b3601af

Browse files
markmentovairobimarko
authored andcommitted
kernel: don't disable stack validation in cross builds
c3e31b6 (2019-07-03), 5f8e587 (2019-10-02), and 802bfe0 (2022-10-20) disabled kernel stack validation when the build host was not running Linux, as the objtool kernel build tool required for stack validation was not portable to other build host environments. This is no longer true, and it is not necessary to attempt to disable kernel stack validation any longer. Signed-off-by: Mark Mentovai <mark@mentovai.com> Link: openwrt/openwrt#23612 Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent f5c5ccd commit b3601af

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

include/kernel.mk

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@ ifeq ($(call qstrip,$(CONFIG_EXTERNAL_KERNEL_TREE))$(call qstrip,$(CONFIG_KERNEL
129129
KERNELRELEASE=$(LINUX_VERSION)
130130
endif
131131

132-
ifneq ($(HOST_OS),Linux)
133-
KERNEL_MAKE_FLAGS += CONFIG_STACK_VALIDATION=
134-
export SKIP_STACK_VALIDATION:=1
135-
endif
136-
137132
KERNEL_MAKEOPTS = -C $(LINUX_DIR) $(KERNEL_MAKE_FLAGS)
138133

139134
ifdef CONFIG_USE_SPARSE

0 commit comments

Comments
 (0)