Tools: ensure ESP32 malloc is wrapped to zero memory

The relevant linker flag needed to be put in the CMake script.
This commit is contained in:
Thomas Watson 2025-01-04 16:11:33 -06:00
parent ed08a6a0bc
commit d9e5f2d8a7

View File

@ -1390,6 +1390,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: