Commit 61f9d4ba authored by Kumar Gala's avatar Kumar Gala Committed by Carles Cufi
Browse files

linker: Fix handling of _static_thread_data section

_static_thread_data should be in ROM as its static data.  So move
it from common-ram.cmake to common-rom.cmake and fix it the params
we call zephyr_iterable_section with.

Signed-off-by: default avatarKumar Gala <kumar.gala@intel.com>
parent 758e58a1
Loading
Loading
Loading
Loading
+0 −2
Changes for cmake/linker_script/common/common-ram.cmake: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -35,8 +35,6 @@ zephyr_linker_section_configure(SECTION initshell
zephyr_linker_section(NAME log_dynamic GROUP DATA_REGION NOINPUT)
zephyr_linker_section_configure(SECTION log_dynamic KEEP INPUT ".log_dynamic_*")

zephyr_iterable_section(NAME _static_thread_data GROUP DATA_REGION ${XIP_ALIGN_WITH_INPUT} SUBALIGN 4)

if(CONFIG_USERSPACE)
  # All kernel objects within are assumed to be either completely
  # initialized at build time, or initialized automatically at runtime
+2 −0
Changes for cmake/linker_script/common/common-rom.cmake: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -191,3 +191,5 @@ zephyr_linker_section_configure(SECTION zephyr_dbg_info INPUT ".zephyr_dbg_info"
zephyr_linker_section(NAME device_handles KVMA RAM_REGION GROUP RODATA_REGION NOINPUT ${XIP_ALIGN_WITH_INPUT} ENDALIGN 16)
zephyr_linker_section_configure(SECTION device_handles INPUT .__device_handles_pass1* KEEP SORT NAME PASS LINKER_DEVICE_HANDLES_PASS1)
zephyr_linker_section_configure(SECTION device_handles INPUT .__device_handles_pass2* KEEP SORT NAME PASS NOT LINKER_DEVICE_HANDLES_PASS1)

zephyr_iterable_section(NAME _static_thread_data KVMA RAM_REGION GROUP RODATA_REGION SUBALIGN 4)