CMake: GCC: Print memory footprint after linking

Change-Id: I10890de96e60cf32e9fd4e6c4523c79052a3f2d0
Signed-off-by: Karl Zhang <karl.zhang@linaro.org>
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index 8996fe6..3fb96d4 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -80,7 +80,8 @@
 		#with short wchars, however the standard library is compiled with normal
 		#wchar, and this generates linker time warnings. TF-M code does not use
 		#wchar, so the warning can be suppressed.
-		embedded_set_target_link_flags(TARGET ${tgt} FLAGS -Xlinker -check-sections -Xlinker -fatal-warnings --entry=Reset_Handler -Wl,--no-wchar-size-warning --specs=nano.specs)
+		embedded_set_target_link_flags(TARGET ${tgt} FLAGS -Xlinker -check-sections -Xlinker -fatal-warnings --entry=Reset_Handler -Wl,--no-wchar-size-warning --specs=nano.specs
+						-Wl,--print-memory-usage)
 	endfunction()
 endif()