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> |
||
|---|---|---|
| .. | ||
| arcmwdt | ||
| armstdc | ||
| minimal | ||
| newlib | ||
| CMakeLists.txt | ||
| Kconfig | ||