Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cpu/esp*: fix linker scripts [backport 2020.10] #15197

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions cpu/esp32/ld/esp32.common.ld
Original file line number Diff line number Diff line change
Expand Up @@ -116,25 +116,25 @@ SECTIONS
*libc.a:*(.literal .text .literal.* .text.*)

/* Xtensa basic functionality written in assembler should be placed in iram */
*xtensa.a:*(.literal .text .literal.* .text.*)
*xtensa/*(.literal .text .literal.* .text.*)
/* ESP-IDF parts that have to run in IRAM */
*esp_idf_heap.a:*(.literal .text .literal.* .text.*)
*esp_idf_spi_flash.a:*(.literal .text .literal.* .text.*)
*esp_idf_heap/*(.literal .text .literal.* .text.*)
*esp_idf_spi_flash/*(.literal .text .literal.* .text.*)
/* parts of RIOT that should to run in IRAM */
*core.a:*(.literal .text .literal.* .text.*)
*littlefs.a:*(.literal .text .literal.* .text.*)
*littlefs2.a:*(.literal .text .literal.* .text.*)
*newlib_syscalls_default.a:*(.literal .text .literal.* .text.*)
*spiffs_fs.a:*(.literal .text .literal.* .text.*)
*spiffs.a:*(.literal .text .literal.* .text.*)
*core/*(.literal .text .literal.* .text.*)
*littlefs/*(.literal .text .literal.* .text.*)
*littlefs2/*(.literal .text .literal.* .text.*)
*newlib_syscalls_default/*(.literal .text .literal.* .text.*)
*spiffs_fs/*(.literal .text .literal.* .text.*)
*spiffs/*(.literal .text .literal.* .text.*)
*syscalls.o(.literal .text .literal.* .text.*)
*vfs.a:*(.literal .text .literal.* .text.*)
*vfs/*(.literal .text .literal.* .text.*)

/* part of the RIOT port that should run in IRAM */
*cpu.a:*(.literal .text .literal.* .text.*)
*esp_common.a:*(.literal .text .literal.* .text.*)
*periph.a:*(.literal .text .literal.* .text.*)
*mtd.a:**(.literal .text .literal.* .text.*)
*cpu/*(.literal .text .literal.* .text.*)
*esp_common/*(.literal .text .literal.* .text.*)
*periph/*(.literal .text .literal.* .text.*)
*mtd/**(.literal .text .literal.* .text.*)

INCLUDE esp32.spiram.rom-functions-iram.ld
_iram_text_end = ABSOLUTE(.);
Expand Down
24 changes: 12 additions & 12 deletions cpu/esp8266/ld/esp8266.riot-os.ld
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ SECTIONS
/* TODO put only necessary .rodata to dram */
/* *(.rodata .rodata.*) */
*libc.a:*.o(.rodata.* .rodata)
*core.a:*(.rodata.* .rodata)
*cpu.a:*(.rodata .rodata.*)
*core/*(.rodata.* .rodata)
*cpu/*(.rodata .rodata.*)
*libpp.a:(.rodata.* .rodata)
*liblog.a:(.rodata.* .rodata)

Expand Down Expand Up @@ -222,24 +222,24 @@ SECTIONS
*(.literal .text)
*core.a:*(.literal .text .literal.* .text.*)
*/
*gdbstub.a:*(.literal .text .literal.* .text.*)
*gdbstub/*(.literal .text .literal.* .text.*)
*(.stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
/* RIOT-OS compiled source files that use the .iram1.* section names for IRAM
functions, etc. */
*(.iram1 .iram1.*)

/* SDK libraries that expect their .text or .data sections to link to iram */
/* TODO *libcore.a:(.bss .data .bss.* .data.* COMMON) */
*esp_idf_spi_flash.a:spi_flash_raw.o(.literal .text .literal.* .text.*)
*esp_idf_esp8266.a:ets_printf.o(.literal .text .literal.* .text.*)
*esp_idf_spi_flash/spi_flash_raw.o(.literal .text .literal.* .text.*)
*esp_idf_esp8266/ets_printf.o(.literal .text .literal.* .text.*)
/*
*cpu.a:*.o(.literal .text .literal.* .text.*)
*/
*core.a:sched.o(.literal .text .literal.* .text.*)
*esp_wifi.a:*(.literal .text .literal.* .text.*)
*freertos.a:*(.literal .text .literal.* .text.*)
*periph.a:*(.literal .text .literal.* .text.*)
*xtimer.a:*(.literal .text .literal.* .text.*)
*core/sched.o(.literal .text .literal.* .text.*)
*esp_wifi/*(.literal .text .literal.* .text.*)
*freertos/*(.literal .text .literal.* .text.*)
*periph/*(.literal .text .literal.* .text.*)
*xtimer/*(.literal .text .literal.* .text.*)

*libhal.a:clock.o(.literal .text .literal.* .text.*)
*libhal.a:int_asm--set_intclear.o(.literal .text .literal.* .text.*)
Expand All @@ -254,7 +254,7 @@ SECTIONS
*libphy.a:phy_sleep.o(.literal .text .literal.* .text.*)

/* Xtensa basic functionality written in assembler should be placed in iram */
*xtensa.a:*(.literal .text .literal.* .text.*)
*xtensa/*(.literal .text .literal.* .text.*)

/* libgcc functions required for debugging have to be in IRAM */
*libgcc.a:unwind-dw2.o(.literal .text .literal.* .text.*)
Expand Down Expand Up @@ -286,7 +286,7 @@ SECTIONS
*libc.a:*fputwc.o(.literal .text .literal.* .text.*)
*/

enc28j60.a:*(.literal .text .literal.* .text.*)
*enc28j60/*(.literal .text .literal.* .text.*)

*(.fini.literal)
*(.fini)
Expand Down
3 changes: 0 additions & 3 deletions tests/mtd_mapper/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@ include ../Makefile.tests_common
USEMODULE += mtd_mapper
USEMODULE += embunit

# disabling due to unknown failure. See #15123.
TEST_ON_CI_BLACKLIST += esp32-wroom-32

include $(RIOTBASE)/Makefile.include
3 changes: 0 additions & 3 deletions tests/pkg_littlefs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@ include ../Makefile.tests_common
USEMODULE += littlefs
USEMODULE += embunit

# disabling due to unknown failure. See #15123.
TEST_ON_CI_BLACKLIST += esp32-wroom-32

include $(RIOTBASE)/Makefile.include
3 changes: 0 additions & 3 deletions tests/pkg_littlefs2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@ include ../Makefile.tests_common
USEPKG += littlefs2
USEMODULE += embunit

# disabling due to unknown failure. See #15123.
TEST_ON_CI_BLACKLIST += esp32-wroom-32

include $(RIOTBASE)/Makefile.include
3 changes: 0 additions & 3 deletions tests/pkg_spiffs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@ include ../Makefile.tests_common
USEMODULE += spiffs
USEMODULE += embunit

# disabling due to unknown failure. See #15123.
TEST_ON_CI_BLACKLIST += esp32-wroom-32

include $(RIOTBASE)/Makefile.include