esp-idf/components/freertos/port/riscv
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/freertos Merge branch 'bugfix/silent_asserts_v4.3' into 'release/v4.3' 2021-04-13 04:30:09 +00:00
port.c freertos: fix TLS run-time address calculation 2021-05-06 11:42:14 +08:00
portasm.S freerots: fix rtos_int_exit writing outside ISR stack 2021-01-26 11:18:39 +00:00