diff --git a/newlib/libc/picolib/picosbrk.c b/newlib/libc/picolib/picosbrk.c index 8c415274ad..51235be6e7 100644 --- a/newlib/libc/picolib/picosbrk.c +++ b/newlib/libc/picolib/picosbrk.c @@ -35,13 +35,10 @@ #include -extern char __end[]; +extern char __heap_start[]; extern char __heap_end[]; -extern char __heap_size[]; -static char *brk = __end; - -#define heap_size ((uintptr_t)__heap_size) +static char *brk = __heap_start; void *sbrk(ptrdiff_t incr) {