Minor linker script additions

This commit is contained in:
bjoernQ 2023-04-06 13:28:07 +02:00
parent 8815e75250
commit 48ff4c293b
2 changed files with 8 additions and 0 deletions

View File

@ -6,6 +6,7 @@ SECTIONS {
_rodata_start = ABSOLUTE(.);
. = ALIGN (4);
*(.rodata .rodata.*)
*(.srodata .srodata.*)
_rodata_end = ABSOLUTE(.);
} > RODATA

View File

@ -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;