Skip to content

Commit f7c428d

Browse files
sylvioalvesChromeos LUCI
authored andcommitted
soc: esp32c3: fix tls linking error
Fix linking error due undefined tdata entry. After zephyrproject-rtos#72642, tdata could be undefined due to missing TLS check. Fixed zephyrproject-rtos#74852 (cherry picked from commit ee1b13c) Original-Signed-off-by: Sylvio Alves <[email protected]> GitOrigin-RevId: ee1b13c Change-Id: I489d954e14822ee44b2892b257afaab35724ee9c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5653342 Reviewed-by: Ting Shen <[email protected]> Tested-by: ChromeOS Prod (Robot) <[email protected]> Tested-by: Ting Shen <[email protected]> Commit-Queue: Ting Shen <[email protected]>
1 parent 1dd9993 commit f7c428d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

soc/espressif/esp32c3/default.ld

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,10 +787,12 @@ SECTIONS
787787
{
788788
. = ALIGN(4);
789789

790+
#ifdef CONFIG_THREAD_LOCAL_STORAGE
790791
/* create explicit symbol for __tdata_start so that it is loaded
791792
* into proper DROM region atributted by AT keyword below
792793
*/
793794
__tdata_start = ADDR(tdata);
795+
#endif
794796

795797
_rodata_reserved_end = ABSOLUTE(.);
796798
_image_rodata_end = ABSOLUTE(.);

0 commit comments

Comments
 (0)