Skip to content

Commit a1ac3e6

Browse files
committed
Fix linking to newlib rom
1 parent 7ebfd73 commit a1ac3e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ports/espressif/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ LDFLAGS += \
246246
ifeq ($(IDF_TARGET),esp32)
247247
LDFLAGS += \
248248
-Tesp32.rom.newlib-data.ld \
249-
-Tesp32.rom.newlib-funcs.ld \
249+
-Tesp32.rom.libc-funcs.ld \
250+
-Tesp32.rom.newlib-reent-funcs.ld \
250251
-Tesp32.rom.spiflash_legacy.ld
251252

252253
CHIP_COMPONENTS = \
@@ -314,8 +315,9 @@ CHIP_COMPONENTS = \
314315

315316
else ifeq ($(IDF_TARGET),esp32s2)
316317
LDFLAGS += \
318+
-Tesp32s2.rom.libc-funcs.ld \
317319
-Tesp32s2.rom.newlib-data.ld \
318-
-Tesp32s2.rom.newlib-funcs.ld \
320+
-Tesp32s2.rom.newlib-reent-funcs.ld \
319321
-Tesp32s2.rom.spiflash_legacy.ld
320322

321323
CHIP_COMPONENTS = \

0 commit comments

Comments
 (0)