added -Wl,gc-sections

This commit is contained in:
Antoine Drouin
2009-07-12 23:59:09 +00:00
parent 252b77dd23
commit 7c3477724b
+1
View File
@@ -67,6 +67,7 @@ AOBJ = $(ASRC:%.S=$(OBJDIR)/%.o)
LD_SCRIPT = $(SRC_FYA)/stm32f10x_flash_md.ld
CFLAGS = -I. -I./$(ARCHI) $(INCLUDES) -Wall -ansi -std=c99 -c -fno-common -Os -g -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -c
CFLAGS += -Wl,gc-sections
#CFLAGS = -mcpu=$(MCU) -mthumb -ansi
#CFLAGS += -std=c99
#CFLAGS += -malignment-traps