diff --git a/boards/risc-v/esp32c3-legacy/common/scripts/legacy_sections.ld b/boards/risc-v/esp32c3-legacy/common/scripts/legacy_sections.ld index 9d4c615d93f..a71dce5f742 100644 --- a/boards/risc-v/esp32c3-legacy/common/scripts/legacy_sections.ld +++ b/boards/risc-v/esp32c3-legacy/common/scripts/legacy_sections.ld @@ -245,7 +245,9 @@ SECTIONS .rtc.data : { *(.rtc.data) + *(.rtc.data.*) *(.rtc.rodata) + *(.rtc.rodata.*) /* Whatever is left from the RTC memory is used as a special heap. */ diff --git a/boards/risc-v/esp32c3-legacy/common/scripts/mcuboot_sections.ld b/boards/risc-v/esp32c3-legacy/common/scripts/mcuboot_sections.ld index 87049498d07..6eca6052294 100644 --- a/boards/risc-v/esp32c3-legacy/common/scripts/mcuboot_sections.ld +++ b/boards/risc-v/esp32c3-legacy/common/scripts/mcuboot_sections.ld @@ -294,7 +294,9 @@ SECTIONS .rtc.data : { *(.rtc.data) + *(.rtc.data.*) *(.rtc.rodata) + *(.rtc.rodata.*) /* Whatever is left from the RTC memory is used as a special heap. */ diff --git a/boards/risc-v/esp32c3/common/scripts/esp32c3_legacy_sections.ld b/boards/risc-v/esp32c3/common/scripts/esp32c3_legacy_sections.ld index d93020dd9d0..561f3c958d8 100644 --- a/boards/risc-v/esp32c3/common/scripts/esp32c3_legacy_sections.ld +++ b/boards/risc-v/esp32c3/common/scripts/esp32c3_legacy_sections.ld @@ -265,7 +265,9 @@ SECTIONS .rtc.data : { *(.rtc.data) + *(.rtc.data.*) *(.rtc.rodata) + *(.rtc.rodata.*) } >rtc_iram_seg /* This section holds RTC data that should have fixed addresses. diff --git a/boards/risc-v/esp32c6/common/scripts/esp32c6_legacy_sections.ld b/boards/risc-v/esp32c6/common/scripts/esp32c6_legacy_sections.ld index 522befd967d..c477ad543b4 100644 --- a/boards/risc-v/esp32c6/common/scripts/esp32c6_legacy_sections.ld +++ b/boards/risc-v/esp32c6/common/scripts/esp32c6_legacy_sections.ld @@ -261,7 +261,9 @@ SECTIONS .rtc.data : { *(.rtc.data) + *(.rtc.data.*) *(.rtc.rodata) + *(.rtc.rodata.*) } >lp_ram_seg /* This section holds RTC data that should have fixed addresses. diff --git a/boards/risc-v/esp32h2/common/scripts/esp32h2_legacy_sections.ld b/boards/risc-v/esp32h2/common/scripts/esp32h2_legacy_sections.ld index 951ef2b75c4..f28f57f25cb 100644 --- a/boards/risc-v/esp32h2/common/scripts/esp32h2_legacy_sections.ld +++ b/boards/risc-v/esp32h2/common/scripts/esp32h2_legacy_sections.ld @@ -261,7 +261,9 @@ SECTIONS .rtc.data : { *(.rtc.data) + *(.rtc.data.*) *(.rtc.rodata) + *(.rtc.rodata.*) } >lp_ram_seg /* This section holds RTC data that should have fixed addresses. diff --git a/boards/xtensa/esp32/common/scripts/legacy_sections.ld b/boards/xtensa/esp32/common/scripts/legacy_sections.ld index c61da8a5b55..d33cee9339b 100644 --- a/boards/xtensa/esp32/common/scripts/legacy_sections.ld +++ b/boards/xtensa/esp32/common/scripts/legacy_sections.ld @@ -359,7 +359,9 @@ SECTIONS .rtc.data : { *(.rtc.data) + *(.rtc.data.*) *(.rtc.rodata) + *(.rtc.rodata.*) /* Whatever is left from the RTC memory is used as a special heap. */ diff --git a/boards/xtensa/esp32/common/scripts/mcuboot_sections.ld b/boards/xtensa/esp32/common/scripts/mcuboot_sections.ld index da36517943f..25a6528a79e 100644 --- a/boards/xtensa/esp32/common/scripts/mcuboot_sections.ld +++ b/boards/xtensa/esp32/common/scripts/mcuboot_sections.ld @@ -313,7 +313,9 @@ SECTIONS .rtc.data : { *(.rtc.data) + *(.rtc.data.*) *(.rtc.rodata) + *(.rtc.rodata.*) /* Whatever is left from the RTC memory is used as a special heap. */ diff --git a/boards/xtensa/esp32/common/scripts/simple_boot_sections.ld b/boards/xtensa/esp32/common/scripts/simple_boot_sections.ld index 7506fd4397d..bf2cbc4f0c6 100644 --- a/boards/xtensa/esp32/common/scripts/simple_boot_sections.ld +++ b/boards/xtensa/esp32/common/scripts/simple_boot_sections.ld @@ -537,7 +537,9 @@ SECTIONS .rtc.data : { *(.rtc.data) + *(.rtc.data.*) *(.rtc.rodata) + *(.rtc.rodata.*) /* Whatever is left from the RTC memory is used as a special heap. */ diff --git a/boards/xtensa/esp32s2/common/scripts/mcuboot_sections.ld b/boards/xtensa/esp32s2/common/scripts/mcuboot_sections.ld index 19a80ddb972..8d739fcd5e7 100644 --- a/boards/xtensa/esp32s2/common/scripts/mcuboot_sections.ld +++ b/boards/xtensa/esp32s2/common/scripts/mcuboot_sections.ld @@ -337,7 +337,9 @@ SECTIONS .rtc.data : { *(.rtc.data) + *(.rtc.data.*) *(.rtc.rodata) + *(.rtc.rodata.*) /* Whatever is left from the RTC memory is used as a special heap. */ diff --git a/boards/xtensa/esp32s2/common/scripts/simple_boot_sections.ld b/boards/xtensa/esp32s2/common/scripts/simple_boot_sections.ld index 470f0ddf0de..af06481df72 100644 --- a/boards/xtensa/esp32s2/common/scripts/simple_boot_sections.ld +++ b/boards/xtensa/esp32s2/common/scripts/simple_boot_sections.ld @@ -418,7 +418,9 @@ SECTIONS .rtc.data : { *(.rtc.data) + *(.rtc.data.*) *(.rtc.rodata) + *(.rtc.rodata.*) /* Whatever is left from the RTC memory is used as a special heap. */ diff --git a/boards/xtensa/esp32s3/common/scripts/legacy_sections.ld b/boards/xtensa/esp32s3/common/scripts/legacy_sections.ld index 927545e7811..a7555618a9a 100644 --- a/boards/xtensa/esp32s3/common/scripts/legacy_sections.ld +++ b/boards/xtensa/esp32s3/common/scripts/legacy_sections.ld @@ -386,10 +386,20 @@ SECTIONS _iram_end = ABSOLUTE(.); } >iram0_0_seg + /* RTC BSS section. */ + + .rtc.bss (NOLOAD) : + { + *(.rtc.bss) + } >rtc_slow_seg + .rtc.data : { + . = ALIGN(4); *(.rtc.data) + *(.rtc.data.*) *(.rtc.rodata) + *(.rtc.rodata.*) /* Whatever is left from the RTC memory is used as a special heap. */ diff --git a/boards/xtensa/esp32s3/common/scripts/mcuboot_sections.ld b/boards/xtensa/esp32s3/common/scripts/mcuboot_sections.ld index 3eaea7a3fde..e7d5ad0ebf0 100644 --- a/boards/xtensa/esp32s3/common/scripts/mcuboot_sections.ld +++ b/boards/xtensa/esp32s3/common/scripts/mcuboot_sections.ld @@ -465,7 +465,9 @@ SECTIONS .rtc.data : { *(.rtc.data) + *(.rtc.data.*) *(.rtc.rodata) + *(.rtc.rodata.*) /* Whatever is left from the RTC memory is used as a special heap. */