zephyr/lib/libc
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
..
arcmwdt ARC: MWDT: libc: add _exit support 2021-09-01 17:08:32 -04:00
armstdc armclang: threading_weak.c source file added for armclang 2021-08-30 08:54:23 -04:00
minimal libc: types: suppress deviation 2021-08-24 07:23:02 -04:00
newlib lib: newlib: Add workaround for #38258 2021-09-02 10:58:15 -05:00
CMakeLists.txt armclang: ARM Compiler C library support 2021-08-30 08:54:23 -04:00
Kconfig armclang: ARM Compiler C library support 2021-08-30 08:54:23 -04:00