From cccccd6da838c612ff47ec8137ca1f7458a1a5a5 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Wed, 12 Mar 2025 11:16:38 +0800 Subject: [PATCH] fix(newlib): fixed newlib malloc wrappers IRAM/flash placement If HEAP_PLACE_FUNCTION_INTO_FLASH = y then we should also place the newlib wrappers for the heap in to flash. --- components/newlib/newlib.lf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/newlib/newlib.lf b/components/newlib/newlib.lf index 19f0992d3a..1e2782ac7d 100644 --- a/components/newlib/newlib.lf +++ b/components/newlib/newlib.lf @@ -1,7 +1,8 @@ [mapping:newlib] archive: libnewlib.a entries: - heap (noflash) + if HEAP_PLACE_FUNCTION_INTO_FLASH = n: + heap (noflash) abort (noflash) assert (noflash) stdatomic (noflash)