From 3b110c2d34092080377ba693347d9a09ddd7c389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 11 Mar 2015 10:28:17 +0000 Subject: [PATCH] Use link-time garbage collection in memory.sh --- scripts/memory.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/memory.sh b/scripts/memory.sh index 792d27f0c..eefe1025d 100755 --- a/scripts/memory.sh +++ b/scripts/memory.sh @@ -12,7 +12,7 @@ CONFIG_H='include/polarssl/config.h' CLIENT='mini_client' -CFLAGS_EXEC=-fno-asynchronous-unwind-tables +CFLAGS_EXEC='-fno-asynchronous-unwind-tables -Wl,--gc-section -ffunction-sections' CFLAGS_MEM=-g3 if [ -r $CONFIG_H ]; then :; else