esp-idf/components/esp32s2
Ivan Grokhotkov b7707c54ce 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-05-06 11:42:14 +08:00
..
include esp32c3: memprot API upgrade and test application 2021-04-12 10:21:58 +10:00
ld freertos: fix TLS run-time address calculation 2021-05-06 11:42:14 +08:00
test style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
cache_err_int.c esp_rom: extract common ets apis into esp_rom_sys.h 2020-07-27 15:27:01 +08:00
clk.c esp_rom: extract common ets apis into esp_rom_sys.h 2020-07-27 15:27:01 +08:00
CMakeLists.txt Updates for riscv support 2020-11-13 07:49:11 +11:00
component.mk global: rename esp32s2beta to esp32s2 2020-01-22 12:14:38 +08:00
crosscore_int.c Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
dport_access.c global: rename esp32s2beta to esp32s2 2020-01-22 12:14:38 +08:00
esp_crypto_lock.c Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
esp_ds.c esp32s2 ds: Fix invalidating Digital Signature key from HMAC peripheral if assertions are disabled 2021-03-25 15:34:26 +11:00
esp_hmac.c HMAC: adding downstream JTAG Re-enable support 2020-09-28 23:40:59 +05:30
hw_random.c global: Uses CCOUNT API instead of XTHAL macro 2021-01-12 16:24:23 +08:00
Kconfig Security: ESP32C3 memory protection feature (IRAM0/DRAM0) 2021-01-27 08:44:03 +01:00
linker.lf esp32, esp32s2: move panic handling code to new component 2020-03-10 19:56:24 +08:00
Makefile.projbuild Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
memprot.c esp32c3: memprot API upgrade and test application 2021-04-12 10:21:58 +10:00
spiram_psram.c global: fix sign-compare warnings 2021-01-12 14:05:08 +08:00
spiram_psram.h global: rename esp32s2beta to esp32s2 2020-01-22 12:14:38 +08:00
spiram.c esp32s2 spiram: Fix unused variable warnings 2020-09-21 11:43:55 +10:00
system_api_esp32s2.c esp32s2: Fix embedded flash feature flag for ESP32-S2FH16, ESP32-S2FH32 2020-11-17 18:16:25 +11:00