From 436741f6c2c3fe1533496ce5a9f7db96e4e4631f Mon Sep 17 00:00:00 2001 From: Sylvio Alves Date: Mon, 24 Jun 2024 06:34:39 -0300 Subject: [PATCH] soc: esp32c3: fix tls linking error Fix linking error due undefined tdata entry. After #72642, tdata could be undefined due to missing TLS check. Fixed #74852 Signed-off-by: Sylvio Alves --- soc/espressif/esp32c3/default.ld | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soc/espressif/esp32c3/default.ld b/soc/espressif/esp32c3/default.ld index 24cfd1e675e8f..5d4abe7b8ce49 100644 --- a/soc/espressif/esp32c3/default.ld +++ b/soc/espressif/esp32c3/default.ld @@ -787,10 +787,12 @@ SECTIONS { . = ALIGN(4); +#ifdef CONFIG_THREAD_LOCAL_STORAGE /* create explicit symbol for __tdata_start so that it is loaded * into proper DROM region atributted by AT keyword below */ __tdata_start = ADDR(tdata); +#endif _rodata_reserved_end = ABSOLUTE(.); _image_rodata_end = ABSOLUTE(.);