Skip to content

Commit

Permalink
Tools: ensure ESP32 malloc is wrapped to zero memory
Browse files Browse the repository at this point in the history
The relevant linker flag needed to be put in the CMake script.
  • Loading branch information
tpwrules authored and peterbarker committed Jan 4, 2025
1 parent 716a9dc commit 2d98657
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Tools/ardupilotwaf/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2d98657

Please sign in to comment.