added --print-memory-usage to linker parameters (#2195)

* added --print-memory-usage to linker parameters

* included standalone apps
This commit is contained in:
Bernd Herzog
2024-07-16 11:47:55 +02:00
committed by GitHub
parent ae75540d35
commit 048359fb0e
3 changed files with 4 additions and 0 deletions

View File

@@ -220,6 +220,7 @@ target_link_libraries(${PROJECT_NAME}.elf -Wl,-Map=${PROJECT_NAME}.map)
# redirect std lib memory allocations
target_link_libraries(${PROJECT_NAME}.elf "-Wl,-wrap,_malloc_r")
target_link_libraries(${PROJECT_NAME}.elf "-Wl,-wrap,_free_r")
target_link_libraries(${PROJECT_NAME}.elf "-Wl,--print-memory-usage")
add_custom_command(
OUTPUT ${PROJECT_NAME}.ppmp