sandbox: add libc memory allocator
While we typically want to reuse as much barebox functionality as
possible in sandbox, using system malloc(3) instead can be very
useful when using external memory integrity tools. This is even
useful for AddressSanitizer, because the reports resulting from
the memory poisoning API are less detailed than the built-in
support for the libc malloc(3).

Note that a barebox "heap" is still allocated upfront. It's only
used for request_sdram_region now though. Whatever is allocated by
means of malloc and memalign will be ina disjunct heap.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 4c0809a commit 94fb245bd6946b24639e5c374b36bc41d8833fdb
@Ahmad Fatoum Ahmad Fatoum authored on 6 Jul 2020
Sascha Hauer committed on 14 Jul 2020
Showing 4 changed files
View
arch/sandbox/Makefile
View
arch/sandbox/os/Makefile
View
arch/sandbox/os/libc_malloc.c 0 → 100644
View
common/Kconfig