From 2d9865760d859645106703858077c5a8bcfcb88b 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 89b1a964972b8..b3382ee88370c 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -1390,6 +1390,7 @@ def configure_env(self, cfg, env): ] # 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: