diff options
Diffstat (limited to 'os/common/ports/ARMCMx')
-rw-r--r-- | os/common/ports/ARMCMx/compilers/GCC/rules.mk | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/os/common/ports/ARMCMx/compilers/GCC/rules.mk b/os/common/ports/ARMCMx/compilers/GCC/rules.mk index 056708f93..06299400c 100644 --- a/os/common/ports/ARMCMx/compilers/GCC/rules.mk +++ b/os/common/ports/ARMCMx/compilers/GCC/rules.mk @@ -12,6 +12,9 @@ CPPOPT = $(USE_CPPOPT) # Garbage collection
ifeq ($(USE_LINK_GC),yes)
OPT += -ffunction-sections -fdata-sections -fno-common
+ LDOPT := --gc-sections
+else
+ LDOPT :=
endif
# Link time optimizations
@@ -29,13 +32,6 @@ else DADEFS += -DCORTEX_USE_FPU=FALSE
endif
-# Garbage collection
-ifeq ($(USE_LINK_GC),yes)
- LDOPT := --gc-sections
-else
- LDOPT :=
-endif
-
# Process stack size
ifeq ($(USE_PROCESS_STACKSIZE),)
LDOPT := $(LDOPT),--defsym=__process_stack_size__=0x400
|