esp_system: Fix esp32c2/esp32c3/esp32h2 TLS size

The change fixes thread-local-storage size by removing .srodata section
from it. It initially was included in TLS section by mistake.
The issue was found when stack size increased after building applications
with GCC-11.1 compiler. Stack size became bigger because some new data
appeared in .srodata. See more details here:
adce62f53d
This commit is contained in:
Alexey Lapshin
2022-06-17 13:54:09 +04:00
committed by BOT
parent b0fa5c7c2d
commit 69b317368e
13 changed files with 8 additions and 30 deletions

View File

@@ -44,8 +44,6 @@ SECTIONS
*(.sdata)
*(.sdata.*)
*(.gnu.linkonce.s.*)
*(.sdata2)
*(.sdata2.*)
*(.gnu.linkonce.s2.*)
*(.jcr)
@@ -226,8 +224,6 @@ SECTIONS
*(.tdata.*)
*(.tbss)
*(.tbss.*)
*(.srodata)
*(.srodata.*)
_thread_local_end = ABSOLUTE(.);
_rodata_reserved_end = ABSOLUTE(.);
. = ALIGN(4);