Skip to content

Commit 2e2e3a3

Browse files
RobinKastbergkartben
authored andcommitted
cmake: linker_script: keep .symbol_to_keep
Update to keep in sync with common-rom-misc.ld Signed-off-by: Robin Kastberg <[email protected]>
1 parent 40ab30f commit 2e2e3a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/linker_script/common/common-rom.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ zephyr_iterable_section(NAME log_strings KVMA RAM_REGION GROUP RODATA_REGION SUB
174174

175175
zephyr_iterable_section(NAME log_const KVMA RAM_REGION GROUP RODATA_REGION SUBALIGN ${CONFIG_LINKER_ITERABLE_SUBALIGN})
176176

177+
zephyr_linker_section(NAME symbol_to_keep GROUP RODATA_REGION NOINPUT)
178+
zephyr_linker_section_configure(SECTION symbol_to_keep INPUT ".symbol_to_keep*" KEEP SORT NAME)
179+
177180
zephyr_iterable_section(NAME shell KVMA RAM_REGION GROUP RODATA_REGION SUBALIGN ${CONFIG_LINKER_ITERABLE_SUBALIGN})
178181

179182
zephyr_iterable_section(NAME shell_root_cmds KVMA RAM_REGION GROUP RODATA_REGION SUBALIGN ${CONFIG_LINKER_ITERABLE_SUBALIGN})

0 commit comments

Comments
 (0)