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:
Keith Packard 2022-04-12 16:59:01 -07:00 committed by Stephanos Ioannidis
commit aeaad1b07d

View file

@ -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)