Improved discovery Makefiles to throw away unsused symbols and make elf smaller.

This commit is contained in:
t-moe
2015-06-02 16:26:52 +02:00
parent da34bceffa
commit 2521421bb4
4 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ ARCH_FLAGS=-mthumb -mcpu=cortex-m4 $(FP_FLAGS)
#Compiler, Linker Options
CPPFLAGS=-DUSE_USB_OTG_FS -DUSE_HOST_MODE -I$(INC_DIR) -I$(INC_DIR2) -I$(INC_DIR3) -I$(INC_CORE_DIR)
CFLAGS=$(ARCH_FLAGS) -O0 -g #-ffunction-sections -fdata-sections -g
CFLAGS=$(ARCH_FLAGS) -O0 -g -ffunction-sections -fdata-sections
#CFLAGS += -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork
#CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16