mirror of
https://github.com/apache/nuttx.git
synced 2026-08-27 12:20:46 +00:00
The TLS initialization logic needs to be updated to match the modified linker script section definitions. The previous implementation assumed that _END_TDATA and _START_TBSS were contiguous, but there may be padding between these sections for alignment purposes. This commit updates up_tls_initialize() to explicitly account for the padding gap between _END_TDATA and _START_TBSS when zeroing the .tbss section. The size calculation in up_tls_size() is also updated to use _END_TBSS instead of the previous _END_TXXX definition to match the current linker script layout. Changes: - Calculate padding gap: (_START_TBSS - _END_TDATA) - Zero .tbss at correct offset accounting for padding - Update size calculation to use proper section boundaries Signed-off-by: guoshengyuan1 <guoshengyuan1@xiaomi.com> |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| avr | ||
| ceva | ||
| dummy | ||
| hc | ||
| mips | ||
| misoc | ||
| or1k | ||
| renesas | ||
| risc-v | ||
| sim | ||
| sparc | ||
| tricore | ||
| x86 | ||
| x86_64 | ||
| xtensa | ||
| z16 | ||
| z80 | ||
| CMakeLists.txt | ||
| Kconfig | ||