...
Furthermore, we need to provide reentrant implementations for sbrk(), malloc_lock(), malloc_unlock(), env_lock(), env_unlock(). Broadly used is this independent implementation: newlib and FreeRTOS.
To use this, we have to exclude the libc_mem_support from the libc_support component needs to be excluded from the build.