compiler: Implement -ffunction-sections work

This commit is contained in:
Ayke van Laethem
2018-04-27 01:27:33 +02:00
parent f7c2d0124d
commit 5bbd41e9fb
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ TARGET ?= unix
ifeq ($(TARGET),pca10040)
GCC = arm-none-eabi-gcc
LD = arm-none-eabi-ld -T arm.ld
LD = arm-none-eabi-ld -T arm.ld --gc-sections
SIZE = arm-none-eabi-size
OBJCOPY = arm-none-eabi-objcopy
LLFLAGS += -target armv7m-none-eabi