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 <sylvio.alves@espressif.com>
This commit is contained in:
Sylvio Alves 2024-06-24 06:34:39 -03:00 committed by Alberto Escolar
commit ee1b13c822

View file

@ -787,10 +787,12 @@ SECTIONS
{ {
. = ALIGN(4); . = ALIGN(4);
#ifdef CONFIG_THREAD_LOCAL_STORAGE
/* create explicit symbol for __tdata_start so that it is loaded /* create explicit symbol for __tdata_start so that it is loaded
* into proper DROM region atributted by AT keyword below * into proper DROM region atributted by AT keyword below
*/ */
__tdata_start = ADDR(tdata); __tdata_start = ADDR(tdata);
#endif
_rodata_reserved_end = ABSOLUTE(.); _rodata_reserved_end = ABSOLUTE(.);
_image_rodata_end = ABSOLUTE(.); _image_rodata_end = ABSOLUTE(.);