cmake: Add .tdata and .tbss to generated TLS linker sections
The linker_script generating tool needs to ensure that .tdata gets added to the TLS data section while .tbss is added to the TLS BSS section. Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
2aca7e5e0f
commit
aeaad1b07d
1 changed files with 4 additions and 0 deletions
|
@ -2,10 +2,14 @@
|
|||
|
||||
if(CONFIG_THREAD_LOCAL_STORAGE)
|
||||
zephyr_linker_section(NAME .tdata LMA FLASH NOINPUT)
|
||||
zephyr_linker_section_configure(SECTION .tdata INPUT ".tdata")
|
||||
zephyr_linker_section_configure(SECTION .tdata INPUT ".tdata.*")
|
||||
zephyr_linker_section_configure(SECTION .tdata INPUT ".gnu.linkonce.td.*")
|
||||
# GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
|
||||
zephyr_linker_section(NAME .tbss LMA FLASH NOINPUT)
|
||||
zephyr_linker_section_configure(SECTION .tbss INPUT ".tbss")
|
||||
zephyr_linker_section_configure(SECTION .tbss INPUT ".tbss.*")
|
||||
zephyr_linker_section_configure(SECTION .tbss INPUT ".gnu.linkonce.tb.*")
|
||||
zephyr_linker_section_configure(SECTION .tbss INPUT ".tcommon")
|
||||
# GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue