From 66f9ced0cb729caa0d9f09a3128f08cf92d07f38 Mon Sep 17 00:00:00 2001 From: hujun5 Date: Sun, 22 Jun 2025 16:03:24 +0800 Subject: [PATCH] arch: default enable TLS_ALIGNED when BUILD_PROTECTED=y Change TLS_ALIGNED default configuration to enable when either BUILD_KERNEL or BUILD_PROTECTED is selected. Protected mode requires stack alignment to properly handle TLS data structure at stack base. Signed-off-by: hujun5 --- libs/libc/tls/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/tls/Kconfig b/libs/libc/tls/Kconfig index 65627e2d49b..cd34a4e366d 100644 --- a/libs/libc/tls/Kconfig +++ b/libs/libc/tls/Kconfig @@ -7,7 +7,7 @@ menu "Thread Local Storage (TLS)" config TLS_ALIGNED bool "Require stack alignment" - default BUILD_KERNEL + default BUILD_KERNEL || BUILD_PROTECTED ---help--- Aligned TLS works by fetching thread information from the beginning of the stack memory allocation. In order to do this, the memory