aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rules.mak2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index 550fe19bf..2f34bfbd2 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -253,6 +253,7 @@ ifeq ($(strip $(shell [ $(CC_MAJOR) -ge 4 -a $(CC_MINOR) -ge 1 ] ; echo $$?)),0)
253endif # gcc-4.1 and beyond 253endif # gcc-4.1 and beyond
254endif 254endif
255OPTIMIZATION+=$(call check_cc,$(CC),-fomit-frame-pointer,) 255OPTIMIZATION+=$(call check_cc,$(CC),-fomit-frame-pointer,)
256OPTIMIZATION+=$(call check_cc,$(CC),-ffunction-sections -fdata-sections,)
256 257
257# 258#
258#-------------------------------------------------------- 259#--------------------------------------------------------
@@ -284,6 +285,7 @@ ifeq ($(strip $(CONFIG_DEBUG)),y)
284else 285else
285 CFLAGS +=-DNDEBUG 286 CFLAGS +=-DNDEBUG
286 CHECKED_LDFLAGS += $(call check_ld,$(LD),--sort-common,) 287 CHECKED_LDFLAGS += $(call check_ld,$(LD),--sort-common,)
288 CHECKED_LDFLAGS += $(call check_ld,--gc-sections,)
287endif 289endif
288 290
289ifneq ($(strip $(CONFIG_DEBUG_PESSIMIZE)),y) 291ifneq ($(strip $(CONFIG_DEBUG_PESSIMIZE)),y)