4008-04-07 Release
[avr_bc100.git] / BaseTinyFirmware / GCC / avr458 / Makefile
index 412aa8da755bf32357bd8545f0052868c8a1e265..c2d1462e600dd9cc3cb6bdc05cac0465160bf532 100644 (file)
@@ -13,7 +13,7 @@ COMMON = -mmcu=$(MCU)
 \r
 ## Compile options common for all C compilation units.\r
 CFLAGS = $(COMMON)\r
-CFLAGS += -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections\r
+CFLAGS += -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums\r
 CFLAGS += -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=./$(*F).lst\r
 CFLAGS += -MMD -MP -MF dep/$(@F).d  \r
 CFLAGS += -DLIION\r
@@ -25,7 +25,7 @@ ASMFLAGS += -x assembler-with-cpp -Wa,-gdwarf2
 \r
 ## Linker flags\r
 LDFLAGS = $(COMMON)\r
-LDFLAGS +=  -Wl,-Map=$(PROJECT).map,--cref -Wl,-gc-sections -Wl,-relax\r
+LDFLAGS +=  -Wl,-Map=$(PROJECT).map,--cref -Wl,-relax\r
 \r
 ## Intel Hex file production flags\r
 HEX_FLASH_FLAGS = -R .eeprom\r