zephyr/lib/libc/newlib
Stephanos Ioannidis 2208844f17 lib: newlib: Add workaround for #38258
For the Xtensa platforms (e.g. qemu_xtensa), the first `malloc` call
may fail if the newlib heap base address is such that the first `sbrk`
call returns a 4096-byte aligned address.

Here we add a workaround for Xtensa that allocates and immediately
frees a 16-byte memory block during initialisation so that all
subsequent `malloc` calls succeed.

This commit needs to be reverted once the issue #38258 is fixed.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-09-02 10:58:15 -05:00
..
include
CMakeLists.txt cmake: newlib linking flags -lc and -lgcc circular dependency 2021-01-20 09:25:38 -05:00
libc-hooks.c lib: newlib: Add workaround for #38258 2021-09-02 10:58:15 -05:00