Commit 759b8e98 authored by Robin Kastberg's avatar Robin Kastberg Committed by github-actions[bot]
Browse files

cmake: linker_script: keep .symbol_to_keep

Update to keep in sync with common-rom-misc.ld

Signed-off-by: default avatarRobin Kastberg <robin.kastberg@iar.com>
(cherry picked from commit 2e2e3a38)
parent 34b52682
Loading
Loading
Loading
Loading
+3 −0
Changes for cmake/linker_script/common/common-rom.cmake: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -177,6 +177,9 @@ zephyr_iterable_section(NAME log_strings KVMA RAM_REGION GROUP RODATA_REGION SUB

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

zephyr_linker_section(NAME symbol_to_keep GROUP RODATA_REGION NOINPUT)
zephyr_linker_section_configure(SECTION symbol_to_keep INPUT ".symbol_to_keep*" KEEP SORT NAME)

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

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