Merge pull request #470 from bjoernQ/prepare-for-mbedtls

Minor linker script additions
This commit is contained in:
Björn Quentin 2023-04-06 14:37:16 +02:00 committed by GitHub
commit e5d1c603b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

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

View File

@ -28,6 +28,13 @@ INCLUDE "rtc_slow.x"
INCLUDE "external.x" INCLUDE "external.x"
/* End of Shared sections */ /* 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; _heap_end = ABSOLUTE(ORIGIN(dram_seg))+LENGTH(dram_seg) - 2*STACK_SIZE;
_stack_start_cpu1 = _heap_end; _stack_start_cpu1 = _heap_end;