Browse Source

iar: linker_script: zero-init BSS

CONFIG_IAR_DATA_INIT did inadvertently not initialize BSS.

Signed-off-by: Robin Kastberg <robin.kastberg@iar.com>
pull/92460/head
Robin Kastberg 2 weeks ago committed by Daniel DeGrasse
parent
commit
1601a7d696
  1. 2
      cmake/linker/iar/config_file_script.cmake

2
cmake/linker/iar/config_file_script.cmake

@ -98,7 +98,7 @@ function(process_region) @@ -98,7 +98,7 @@ function(process_region)
)
endif()
# Treat BSS to be noinit
if(type STREQUAL BSS)
if(CONFIG_IAR_ZEPHYR_INIT AND type STREQUAL BSS)
set_property(GLOBAL PROPERTY ${section}_NOINIT TRUE)
endif()
endforeach() # all sections

Loading…
Cancel
Save