From 6a2f7b6f88acb1f6dc2a3eb55fa90c239812ef50 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Tue, 10 Aug 2021 11:13:50 +0800 Subject: [PATCH] ld: rename .ext_ram.noinit to .ext_ram_noinit Older versions of the coredump utility tool do not correctly handle this nameing scheme. Rename to keep forward compatibility. --- components/esp_common/include/esp_attr.h | 2 +- components/esp_system/ld/esp32/sections.ld.in | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/esp_common/include/esp_attr.h b/components/esp_common/include/esp_attr.h index 88a230b77c..7b73af7663 100644 --- a/components/esp_common/include/esp_attr.h +++ b/components/esp_common/include/esp_attr.h @@ -91,7 +91,7 @@ extern "C" { #if CONFIG_SPIRAM_ALLOW_NOINIT_SEG_EXTERNAL_MEMORY // Forces data into external memory noinit section to avoid initialization after restart. -#define EXT_RAM_NOINIT_ATTR _SECTION_ATTR_IMPL(".ext_ram.noinit", __COUNTER__) +#define EXT_RAM_NOINIT_ATTR _SECTION_ATTR_IMPL(".ext_ram_noinit", __COUNTER__) #else // Place in internal noinit section #define EXT_RAM_NOINIT_ATTR __NOINIT_ATTR diff --git a/components/esp_system/ld/esp32/sections.ld.in b/components/esp_system/ld/esp32/sections.ld.in index f3fb5026dd..2277dec6e1 100644 --- a/components/esp_system/ld/esp32/sections.ld.in +++ b/components/esp_system/ld/esp32/sections.ld.in @@ -201,10 +201,10 @@ SECTIONS * This section holds data that won't be initialised when startup. * This section locates in External RAM region. */ - .ext_ram.noinit (NOLOAD) : + .ext_ram_noinit (NOLOAD) : { _ext_ram_noinit_start = ABSOLUTE(.); - *(.ext_ram.noinit*) + *(.ext_ram_noinit*) . = ALIGN(4); _ext_ram_noinit_end = ABSOLUTE(.); } > extern_ram_seg