diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2023-01-02 22:48:07 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-01-15 10:04:13 +0000 |
commit | 92565e9246f3a47b90fea4a436ecfd8e7a1198b8 (patch) | |
tree | 5e2fa26fff921296729b74bd8947dd225e69c84f /firmware/SOURCES | |
parent | f2f198663edc01a1f19e35b8a0c302f8ee47ae5e (diff) | |
download | rockbox-92565e9246f3a47b90fea4a436ecfd8e7a1198b8.tar.gz rockbox-92565e9246f3a47b90fea4a436ecfd8e7a1198b8.zip |
buflib: Add malloc-backed buflib
This is intended for improving the effectiveness of tools like
ASAN when debugging memory errors in the sim. It's not meant to
be a serious allocator for hosted targets.
Enable it by changing the buflib backend in config.h.
Change-Id: I0cf23cefa47ee35dede7b49e0e5b72dac60e8d3e
Diffstat (limited to 'firmware/SOURCES')
-rw-r--r-- | firmware/SOURCES | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES index 02e962c0c3..7e2ffb323e 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES | |||
@@ -6,6 +6,8 @@ events.c | |||
6 | backlight.c | 6 | backlight.c |
7 | #if CONFIG_BUFLIB_BACKEND == BUFLIB_BACKEND_MEMPOOL | 7 | #if CONFIG_BUFLIB_BACKEND == BUFLIB_BACKEND_MEMPOOL |
8 | buflib_mempool.c | 8 | buflib_mempool.c |
9 | #elif CONFIG_BUFLIB_BACKEND == BUFLIB_BACKEND_MALLOC | ||
10 | buflib_malloc.c | ||
9 | #endif | 11 | #endif |
10 | core_alloc.c | 12 | core_alloc.c |
11 | general.c | 13 | general.c |