1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

picolibc: glue sbrk to heap start/end [v2]

---
v2:
	Squash fixes in
This commit is contained in:
Koen Zandberg 2020-07-07 11:53:45 +02:00 committed by Keith Packard
parent 26c1920cf1
commit 79d733a1af
2 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,10 @@ endif
ifeq (1,$(USE_PICOLIBC))
LINKFLAGS += -specs=picolibc.specs
# RIOT uses _sheap and _eheap for heap start and end, PicoLIBC uses
# __heap_start and __heap_end. This glues these different names together.
LINKFLAGS += -Wl,--defsym=__heap_end=_eheap
LINKFLAGS += -Wl,--defsym=__heap_start=_sheap
CFLAGS += -specs=picolibc.specs
endif

View File

@ -28,8 +28,6 @@
#include "periph/pm.h"
#include "stdio_base.h"
uint8_t sbrk[1];
/**
* @brief Exit a program without cleaning up files
*