newlib: Provide library name for ROM libc object files linked as PSRAM workarounds

Works around bug reported on forums where any source file ending in *lock.c or *creat.c
was being linked to IRAM.

https://esp32.com/viewtopic.php?f=13&t=8909&p=37362#p37362

Also moves all related functionality to newlib component.
This commit is contained in:
Angus Gratton
2019-01-22 11:49:17 +08:00
committed by Angus Gratton
parent 07645955a2
commit 7f307423c1
9 changed files with 153 additions and 298 deletions

View File

@@ -470,7 +470,6 @@ the target ``iram0_text``.
/* Marker referencing iram0_text */
mapping[iram0_text]
INCLUDE esp32.spiram.rom-functions-iram.ld
_iram_text_end = ABSOLUTE(.);
} > iram0_0_seg
@@ -512,7 +511,6 @@ Then the corresponding excerpt from the generated linker script will be as follo
*(.iram1 .iram1.*)
*libfreertos.a:(.literal .text .literal.* .text.*)
INCLUDE esp32.spiram.rom-functions-iram.ld
_iram_text_end = ABSOLUTE(.);
} > iram0_0_seg