esp-idf/components/esp32c3
Ivan Grokhotkov 0535195983 freertos: fix TLS run-time address calculation
Since dd849ffc, _rodata_start label has been moved to a different
linker output section from where the TLS templates (.tdata, .tbss)
are located. Since link-time addresses of thread-local variables are
calculated relative to the section start address, this resulted in
incorrect calculation of THREADPTR/$tp registers.

Fix by introducing new linker label, _flash_rodata_start, which points
to the .flash.rodata output section where TLS variables are located,
and use it when calculating THREADPTR/$tp.

Also remove the hardcoded rodata section alignment for Xtensa targets.
Alignment of rodata can be affected by the user application, which is
the issue dd849ffc was fixing. To accommodate any possible alignment,
save it in a linker label (_flash_rodata_align) and then use when
calculating THREADPTR. Note that this is not required on RISC-V, since
this target doesn't use TPOFF.
2021-04-21 13:45:21 +02:00
..
include esp32c3: memprot API upgrade and test application 2021-04-12 13:44:11 +10:00
ld freertos: fix TLS run-time address calculation 2021-04-21 13:45:21 +02:00
test esp32: move stack check test 2021-03-31 19:13:03 +08:00
CMakeLists.txt esp32c3: memprot API upgrade and test application 2021-04-12 13:44:11 +10:00
component.mk esp32c3: added target component 2020-12-11 11:44:01 +08:00
dport_access.c esp32c3: added target component 2020-12-11 11:44:01 +08:00
esp_crypto_lock.c aes/sha: use a shared lazy allocated GDMA channel for AES and SHA 2021-03-09 09:23:05 +08:00
esp_ds.c [Peripheral/Security] DS peripheral driver 2021-01-05 12:26:59 +08:00
esp_hmac.c [Peripheral/Security] DS peripheral driver 2021-01-05 12:26:59 +08:00
Kconfig esp32c3: Default supported ESP32-C3 Revision ECO3 2021-04-08 15:06:22 +08:00
Makefile.projbuild esp32c3: added target component 2020-12-11 11:44:01 +08:00
memprot.c esp32c3: memprot API upgrade and test application 2021-04-12 13:44:11 +10:00
project_include.cmake esp32c3: added target component 2020-12-11 11:44:01 +08:00