summaryrefslogtreecommitdiffstats
path: root/firmware/Makefile
diff options
context:
space:
mode:
authorcpldcpu <cpldcpu@gmail.com>2016-04-27 09:01:02 +0200
committercpldcpu <cpldcpu@gmail.com>2016-04-27 09:01:02 +0200
commit70a0947c13eda953cc06c03c75ec9d5e040596c5 (patch)
treeba980e475983ed2e8bcec49d642b2fe82329f099 /firmware/Makefile
parentb23ba5b3aec5d400032d4e999501a7acd3acf0df (diff)
downloadmicronucleus-70a0947c13eda953cc06c03c75ec9d5e040596c5.tar.gz
micronucleus-70a0947c13eda953cc06c03c75ec9d5e040596c5.tar.bz2
micronucleus-70a0947c13eda953cc06c03c75ec9d5e040596c5.zip
firmware: add -gc-sections to save 2 bytes
Diffstat (limited to 'firmware/Makefile')
-rw-r--r--firmware/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
index 4574e0f..828d464 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -34,7 +34,7 @@ CFLAGS += -I. -g2 -Os # -Wall
CFLAGS += -I$(CONFIGPATH) -mmcu=$(DEVICE) -DF_CPU=$(F_CPU) -DBOOTLOADER_ADDRESS=0x$(BOOTLOADER_ADDRESS)
CFLAGS += -nostartfiles -ffunction-sections -fdata-sections -fpack-struct -fno-inline-small-functions -fno-move-loop-invariants -fno-tree-scev-cprop
-LDFLAGS = -Wl,--relax,--section-start=.text=$(BOOTLOADER_ADDRESS),-Map=main.map
+LDFLAGS = -Wl,--relax,--section-start=.text=$(BOOTLOADER_ADDRESS),--gc-sections,-Map=main.map
OBJECTS = crt1.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o
OBJECTS += osccalASM.o