Skip to content

Commit d9e5f2d

Browse files
committed
Tools: ensure ESP32 malloc is wrapped to zero memory
The relevant linker flag needed to be put in the CMake script.
1 parent ed08a6a commit d9e5f2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tools/ardupilotwaf/boards.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,6 +1390,7 @@ def configure_env(self, cfg, env):
13901390
]
13911391

13921392
# wrap malloc to ensure memory is zeroed
1393+
# note that this also needs to be done in the CMakeLists.txt files
13931394
env.LINKFLAGS += ['-Wl,--wrap,malloc']
13941395

13951396
if cfg.options.force_32bit:

0 commit comments

Comments
 (0)