Skip to content

Commit 1601a7d

Browse files
RobinKastbergdanieldegrasse
authored andcommitted
iar: linker_script: zero-init BSS
CONFIG_IAR_DATA_INIT did inadvertently not initialize BSS. Signed-off-by: Robin Kastberg <robin.kastberg@iar.com>
1 parent ae7d7a8 commit 1601a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/linker/iar/config_file_script.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function(process_region)
9898
)
9999
endif()
100100
# Treat BSS to be noinit
101-
if(type STREQUAL BSS)
101+
if(CONFIG_IAR_ZEPHYR_INIT AND type STREQUAL BSS)
102102
set_property(GLOBAL PROPERTY ${section}_NOINIT TRUE)
103103
endif()
104104
endforeach() # all sections

0 commit comments

Comments
 (0)