From db5b344611f0fbcb1005e6cd90366323adad119a Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Sat, 4 Jan 2025 16:11:33 -0600 Subject: [PATCH] Tools: ensure ESP32 malloc is wrapped to zero memory The relevant linker flag needed to be put in the CMake script. --- Tools/ardupilotwaf/boards.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 154ef72f8b..647032c239 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -1372,6 +1372,7 @@ class linux(Board): ] # wrap malloc to ensure memory is zeroed + # note that this also needs to be done in the CMakeLists.txt files env.LINKFLAGS += ['-Wl,--wrap,malloc'] if cfg.options.force_32bit: