diff --git a/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_flash.ld b/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_flash.ld index ae05e4481c..b9a6f62165 100644 --- a/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_flash.ld +++ b/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_flash.ld @@ -94,8 +94,13 @@ SECTIONS *libarch.a:esp32_spiflash.*(.bss .bss.* COMMON) . = ALIGN(8); _ebss = ABSOLUTE(.); + } >dram0_0_seg - /* Uninitialized .bss */ + .noinit (NOLOAD): + { + /* This section contains data that is not initialized during load, + * or during the application's initialization sequence. + */ *(.noinit) } >dram0_0_seg diff --git a/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_iram.ld b/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_iram.ld index fb5d88e8f5..410c6cbe7d 100644 --- a/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_iram.ld +++ b/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_iram.ld @@ -100,8 +100,13 @@ SECTIONS *(COMMON) . = ALIGN(8); _ebss = ABSOLUTE(.); + } >dram0_0_seg - /* Uninitialized .bss */ + .noinit (NOLOAD): + { + /* This section contains data that is not initialized during load, + * or during the application's initialization sequence. + */ *(.noinit) } >dram0_0_seg diff --git a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_flash.ld b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_flash.ld index 36ca15d7ec..16a9c106ce 100644 --- a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_flash.ld +++ b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_flash.ld @@ -97,8 +97,13 @@ SECTIONS *libarch.a:esp32_spiflash.*(.bss .bss.* COMMON) . = ALIGN(8); _ebss = ABSOLUTE(.); + } >dram0_0_seg - /* Uninitialized .bss */ + .noinit (NOLOAD): + { + /* This section contains data that is not initialized during load, + * or during the application's initialization sequence. + */ *(.noinit) } >dram0_0_seg diff --git a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_iram.ld b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_iram.ld index cb543aef63..06a79a40e9 100644 --- a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_iram.ld +++ b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_iram.ld @@ -100,8 +100,13 @@ SECTIONS *(COMMON) . = ALIGN(8); _ebss = ABSOLUTE(.); + } >dram0_0_seg - /* Uninitialized .bss */ + .noinit (NOLOAD): + { + /* This section contains data that is not initialized during load, + * or during the application's initialization sequence. + */ *(.noinit) } >dram0_0_seg diff --git a/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_flash.ld b/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_flash.ld index 20d81352d5..ac02d69dc4 100644 --- a/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_flash.ld +++ b/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_flash.ld @@ -97,8 +97,13 @@ SECTIONS *libarch.a:esp32_spiflash.*(.bss .bss.* COMMON) . = ALIGN(8); _ebss = ABSOLUTE(.); + } >dram0_0_seg - /* Uninitialized .bss */ + .noinit (NOLOAD): + { + /* This section contains data that is not initialized during load, + * or during the application's initialization sequence. + */ *(.noinit) } >dram0_0_seg diff --git a/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_iram.ld b/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_iram.ld index 137d460999..27b6042e20 100644 --- a/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_iram.ld +++ b/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_iram.ld @@ -100,8 +100,13 @@ SECTIONS *(COMMON) . = ALIGN(8); _ebss = ABSOLUTE(.); + } >dram0_0_seg - /* Uninitialized .bss */ + .noinit (NOLOAD): + { + /* This section contains data that is not initialized during load, + * or during the application's initialization sequence. + */ *(.noinit) } >dram0_0_seg