xtensa/esp32: Optimize IRAM usage based on esp-idf

Decrease about 87KB IRAM space cost from Wi-Fi related libs.
This commit is contained in:
Dong Heng 2020-11-20 16:20:56 +08:00 committed by Alan Carvalho de Assis
parent 4078548ae3
commit a59062f719
1 changed files with 2 additions and 4 deletions

View File

@ -54,13 +54,10 @@ SECTIONS
_iram_text_start = ABSOLUTE(.); _iram_text_start = ABSOLUTE(.);
*(.iram1 .iram1.*) *(.iram1 .iram1.*)
*libphy.a:(.literal .text .literal.* .text.*)
*librtc.a:(.literal .text .literal.* .text.*) *librtc.a:(.literal .text .literal.* .text.*)
*libpp.a:(.literal .text .literal.* .text.*)
*libhal.a:(.literal .text .literal.* .text.*)
*libarch.a:esp32_spiflash.*(.literal .text .literal.* .text.*) *libarch.a:esp32_spiflash.*(.literal .text .literal.* .text.*)
*(.wifirxiram .wifirxiram.*) *(.wifirxiram .wifirxiram.*)
*(.wifirxiram .wifi0iram.*) *(.wifi0iram .wifi0iram.*)
_iram_text_end = ABSOLUTE(.); _iram_text_end = ABSOLUTE(.);
/* Module text area starts at the end of iram0_0_seg */ /* Module text area starts at the end of iram0_0_seg */
@ -116,6 +113,7 @@ SECTIONS
KEEP (*(.gnu.linkonce.s2.*)) KEEP (*(.gnu.linkonce.s2.*))
KEEP (*(.jcr)) KEEP (*(.jcr))
*(.dram1 .dram1.*) *(.dram1 .dram1.*)
*libphy.a:(.rodata .rodata.*)
*libarch.a:esp32_spiflash.*(.rodata .rodata.*) *libarch.a:esp32_spiflash.*(.rodata .rodata.*)
. = ALIGN(4); . = ALIGN(4);
_edata = ABSOLUTE(.); _edata = ABSOLUTE(.);