diff --git a/arch/Kconfig b/arch/Kconfig index 59529917f4f4b2..4d6722b232e290 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -150,7 +150,7 @@ config PRIVILEGED_STACK_SIZE config PRIVILEGED_STACK_TEXT_AREA int "Privileged stacks text area" - default 256 if (DEBUG || STACK_CANARIES) + default 256 if (DEBUG || STACK_CANARIES || CODE_DATA_RELOCATION) default 128 depends on ARCH_HAS_USERSPACE help @@ -159,6 +159,7 @@ config PRIVILEGED_STACK_TEXT_AREA config KOBJECT_TEXT_AREA int "Size if kobject text area" default 256 if (!SIZE_OPTIMIZATIONS || STACK_CANARIES || ARC) + default 256 if CODE_DATA_RELOCATION default 128 depends on ARCH_HAS_USERSPACE help