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
f7d5f0f8f1
commit
73e5c2b4a8
@ -120,5 +120,8 @@ 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)
|
||||
|
||||
|
@ -120,4 +120,7 @@ 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)
|
||||
|
Loading…
Reference in New Issue
Block a user