From 4b97619b1965a94f562fab85deb85011b6a81526 Mon Sep 17 00:00:00 2001 From: Alexandre Mergnat Date: Thu, 29 Oct 2020 19:20:06 +0100 Subject: [PATCH] riscv: add support for canaries Kobject test area size must be increased if canary feature is enabled. Signed-off-by: Alexandre Mergnat --- arch/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/Kconfig b/arch/Kconfig index f2c3d57c521..d19228890c8 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -244,6 +244,7 @@ config KOBJECT_TEXT_AREA int "Size if kobject text area" default 512 if COVERAGE_GCOV default 512 if NO_OPTIMIZATIONS + default 512 if STACK_CANARIES && RISCV default 256 depends on ARCH_HAS_USERSPACE help