diff --git a/esp-hal-common/ld/sections/rodata.x b/esp-hal-common/ld/sections/rodata.x index 842087e7c..2d9bd9c05 100644 --- a/esp-hal-common/ld/sections/rodata.x +++ b/esp-hal-common/ld/sections/rodata.x @@ -6,6 +6,7 @@ SECTIONS { _rodata_start = ABSOLUTE(.); . = ALIGN (4); *(.rodata .rodata.*) + *(.srodata .srodata.*) _rodata_end = ABSOLUTE(.); } > RODATA diff --git a/esp32-hal/ld/link-esp32.x b/esp32-hal/ld/link-esp32.x index ca04ab68c..8e7dd7439 100644 --- a/esp32-hal/ld/link-esp32.x +++ b/esp32-hal/ld/link-esp32.x @@ -28,6 +28,13 @@ INCLUDE "rtc_slow.x" INCLUDE "external.x" /* End of Shared sections */ +/* an uninitialized section for use as the wifi-heap in esp-wifi */ +SECTIONS { + .dram2_uninit (NOLOAD) : ALIGN(4) { + *(.dram2_uninit) + } > dram2_seg +} + _heap_end = ABSOLUTE(ORIGIN(dram_seg))+LENGTH(dram_seg) - 2*STACK_SIZE; _stack_start_cpu1 = _heap_end;