Skip to content

Commit ee1b13c

Browse files
sylvioalvesaescolar
authored andcommitted
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 <[email protected]>
1 parent 2dc67c5 commit ee1b13c

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)