summaryrefslogtreecommitdiff
path: root/build_rules
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2012-10-14 00:16:22 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2012-10-14 00:16:22 +0200
commit2abe655e4b7b49377c6cb43d6959c897866ed4c2 (patch)
treee6f83ad386137f64e811ae9913875697748b8979 /build_rules
parentc22df1415784186110bbf253e3fe2e231a55c9c3 (diff)
Enable gc-sections.
Diffstat (limited to 'build_rules')
-rw-r--r--build_rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_rules b/build_rules
index 3fa0f91..e0f9b59 100644
--- a/build_rules
+++ b/build_rules
@@ -18,7 +18,7 @@ def select_arm(env, family):
CCFLAGS = '-O2 -Wall -ggdb -mcpu=${CPU_FAMILY} -mthumb -ffunction-sections',
CXXFLAGS = '-std=c++11 -fno-exceptions -fno-rtti -Wno-pmf-conversions',
ASFLAGS = '-c -x assembler-with-cpp -mcpu=${CPU_FAMILY} -mthumb',
- LINKFLAGS = '-Wall -mcpu=${CPU_FAMILY} -mthumb -mhard-float -nostartfiles -Wl,-T${LINK_SCRIPT}', # -Wl,--gc-sections
+ LINKFLAGS = '-Wall -mcpu=${CPU_FAMILY} -mthumb -mhard-float -nostartfiles -Wl,-T${LINK_SCRIPT} -Wl,--gc-sections',
CPPPATH = [laks_dir],
LIBPATH = [ld_dir],