Skip to content

Commit 9ac12b6

Browse files
bjorniuppsalakartben
authored andcommitted
cmake: linker generator: ld: Fix alignment bug
It seems as if ld_script.cmake hasnt handled zephyr_linker_section_configure( ALIGN ...) due to a typo in a variable name, Signed-off-by: Björn Bergman <bjorn.bergman@iar.com>
1 parent 128698f commit 9ac12b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/linker/ld/ld_script.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function(section_to_string)
267267
get_property(min_size GLOBAL PROPERTY ${STRING_SECTION}_SETTING_${idx}_MIN_SIZE)
268268
get_property(max_size GLOBAL PROPERTY ${STRING_SECTION}_SETTING_${idx}_MAX_SIZE)
269269

270-
if(DEFINED SETTINGS_ALIGN)
270+
if(DEFINED align)
271271
set(TEMP "${TEMP}\n . = ALIGN(${align});")
272272
endif()
273273

0 commit comments

Comments
 (0)