From ba23526e39e9271caa5a6730aba5fce42b6ce2ae Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Fri, 23 Apr 2021 11:16:16 -0300 Subject: [PATCH] boards/esp32c3-devkit: Allocate .noinit in a dedicated section Previously it was being allocated into .bss section after the _ebss address. Although functional, this is not intuitive. --- boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.ld | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.ld b/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.ld index 90dbd7a175..fa3b073743 100644 --- a/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.ld +++ b/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.ld @@ -75,12 +75,16 @@ SECTIONS . = 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) *(.noinit.*) - } >dram0_0_seg .dram0.data :