summaryrefslogtreecommitdiff
path: root/toolchain.inc
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain.inc')
-rw-r--r--toolchain.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/toolchain.inc b/toolchain.inc
index 326e474bee..0e3c0d194c 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -57,10 +57,7 @@ ARCHDIR-i386 := x86
ARCHDIR-x86_32 := x86
ARCHDIR-arm := arm
-CFLAGS_arm += \
- -mno-unaligned-access\
- -mthumb\
- -mthumb-interwork
+CFLAGS_arm := -mno-unaligned-access -ffunction-sections -fdata-sections
toolchain_to_dir = \
$(foreach arch,$(ARCH_SUPPORTED),\