mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-07 08:23:56 -04:00
AP_HAL_ESP32: ensure malloc is wrapped to zero memory
The relevant linker flag needed to be put in the CMake script.
This commit is contained in:
parent
94aa4fc808
commit
ed08a6a0bc
@ -121,6 +121,9 @@ target_link_libraries(${elf_file}
|
||||
# linker script generation, partition_table generation, etc.
|
||||
idf_build_executable(${elf_file})
|
||||
|
||||
# wrap malloc to ensure memory is zeroed
|
||||
target_link_options(${elf_file} PRIVATE "-Wl,--wrap,malloc")
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
|
||||
|
||||
# Additional targets for measuring RAM use: size, size-components, size-files
|
||||
|
@ -121,6 +121,9 @@ target_link_libraries(${elf_file}
|
||||
# linker script generation, partition_table generation, etc.
|
||||
idf_build_executable(${elf_file})
|
||||
|
||||
# wrap malloc to ensure memory is zeroed
|
||||
target_link_options(${elf_file} PRIVATE "-Wl,--wrap,malloc")
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
|
||||
|
||||
# Additional targets for measuring RAM use: size, size-components, size-files
|
||||
|
Loading…
Reference in New Issue
Block a user