Skip to content

Commit ba5b5de

Browse files
Jowlleljhedberg
authored andcommitted
linker_script: Remove some remaining SUBALIGN in iterable/linker sections
The #91219 missed some entries when doing the clean-up. This removes some of remaining SUBALIGN entries in the iterable sections. Fixes CMake Warning: zephyr_linker_section(NAME ...) given unknown arguments: SUBALIGN 4 Signed-off-by: Joel Schaller <[email protected]>
1 parent bd3865c commit ba5b5de

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmake/linker_script/common/common-rom.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ zephyr_iterable_section(NAME device NUMERIC KVMA RAM_REGION GROUP RODATA_REGION)
1515

1616
if(CONFIG_GEN_SW_ISR_TABLE AND NOT CONFIG_SRAM_SW_ISR_TABLE)
1717
# ld align has been changed to subalign to provide identical behavior scatter vs. ld.
18-
zephyr_linker_section(NAME sw_isr_table KVMA FLASH GROUP RODATA_REGION SUBALIGN ${CONFIG_ARCH_SW_ISR_TABLE_ALIGN} NOINPUT)
18+
zephyr_linker_section(NAME sw_isr_table KVMA FLASH GROUP RODATA_REGION NOINPUT)
1919
zephyr_linker_section_configure(
2020
SECTION sw_isr_table
2121
INPUT ".gnu.linkonce.sw_isr_table*"
@@ -197,7 +197,7 @@ zephyr_linker_section(NAME zephyr_dbg_info KVMA RAM_REGION GROUP RODATA_REGION N
197197
zephyr_linker_section_configure(SECTION zephyr_dbg_info INPUT ".dbg_thread_info" KEEP)
198198

199199
if(CONFIG_SYMTAB)
200-
zephyr_linker_section(NAME symtab KVMA FLASH GROUP RODATA_REGION SUBALIGN 4 NOINPUT)
200+
zephyr_linker_section(NAME symtab KVMA FLASH GROUP RODATA_REGION NOINPUT)
201201
zephyr_linker_section_configure(SECTION symtab INPUT ".gnu.linkonce.symtab*")
202202
endif()
203203

@@ -237,7 +237,6 @@ endif()
237237
if(CONFIG_NET_SOCKETS_SERVICE)
238238
zephyr_iterable_section(NAME net_socket_service_desc
239239
KVMA RAM_REGION GROUP RODATA_REGION
240-
SUBALIGN ${CONFIG_LINKER_ITERABLE_SUBALIGN}
241240
)
242241
endif()
243242

0 commit comments

Comments
 (0)