sbrk
The old Unix call that moves the end of the heap — and the tiny function deciding where malloc gets its memory on a microcontroller.
Early Unix grew a process's heap by having brk and sbrk move the end of the data segment, "the break", with malloc built on top. Later systems moved to mmap and POSIX dropped the calls in 2001, but the interface survives where you'd least expect it.
On bare metal newlib has no operating system to ask, so it calls a stub, _sbrk, which the project or the vendor template is supposed to supply. The usual version starts at the linker symbol end and bumps a pointer up towards the stack. Plenty of sample implementations never check whether that pointer has hit the stack, so heap and stack can grow into each other in complete silence. It's one reason firmware people prefer static allocation or a memory pool.