mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-02 14:44:42 +00:00
Prepare linker scripts for ESP32-S3 wifi
This commit is contained in:
parent
5ca771a12e
commit
6eea2f266a
@ -52,12 +52,30 @@ SECTIONS {
|
||||
_rodata_end = ABSOLUTE(.);
|
||||
} > RODATA
|
||||
|
||||
.rodata.wifi :
|
||||
{
|
||||
. = ALIGN(4);
|
||||
*( .rodata_wlog_*.* )
|
||||
} > RODATA AT > RODATA
|
||||
|
||||
.rwtext : ALIGN(4)
|
||||
{
|
||||
. = ALIGN (4);
|
||||
*(.rwtext.literal .rwtext .rwtext.literal.* .rwtext.*)
|
||||
} > RWTEXT
|
||||
|
||||
/* wifi data */
|
||||
.rwtext.wifi :
|
||||
{
|
||||
. = ALIGN(4);
|
||||
*( .wifi0iram .wifi0iram.*)
|
||||
*( .wifirxiram .wifirxiram.*)
|
||||
*( .wifislprxiram .wifislprxiram.*)
|
||||
*( .wifislpiram .wifislpiram.*)
|
||||
*( .phyiram .phyiram.*)
|
||||
*( .iram1 .iram1.*)
|
||||
} > RWTEXT AT > RODATA
|
||||
|
||||
.rwdata_dummy (NOLOAD) :
|
||||
{
|
||||
/* This dummy section represents the .rwtext section but in RWDATA.
|
||||
@ -71,7 +89,7 @@ SECTIONS {
|
||||
/* Create an empty gap as big as .rwtext section - 32k (SRAM0)
|
||||
* because SRAM1 is available on the data bus and instruction bus
|
||||
*/
|
||||
. = MAX(SIZEOF(.rwtext) + RESERVE_ICACHE + VECTORS_SIZE, 32k) - 32k;
|
||||
. = MAX(SIZEOF(.rwtext) + SIZEOF(.rwtext.wifi) + RESERVE_ICACHE + VECTORS_SIZE, 32k) - 32k;
|
||||
|
||||
/* Prepare the alignment of the section above. */
|
||||
. = ALIGN(4);
|
||||
@ -86,6 +104,12 @@ SECTIONS {
|
||||
_data_end = ABSOLUTE(.);
|
||||
} > RWDATA AT > RODATA
|
||||
|
||||
.data.wifi :
|
||||
{
|
||||
. = ALIGN(4);
|
||||
*( .dram1 .dram1.*)
|
||||
} > RWDATA AT > RODATA
|
||||
|
||||
/* LMA of .data */
|
||||
_sidata = LOADADDR(.data);
|
||||
|
||||
@ -103,4 +127,11 @@ SECTIONS {
|
||||
*(.noinit .noinit.*)
|
||||
} > RWDATA
|
||||
|
||||
}
|
||||
/* must be last segment using RWDATA */
|
||||
.heap_start (NOLOAD) : ALIGN(4)
|
||||
{
|
||||
. = ALIGN (4);
|
||||
_heap_start = ABSOLUTE(.);
|
||||
} > RWDATA
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user