aboutsummaryrefslogtreecommitdiff
path: root/Source/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Makefile')
-rw-r--r--Source/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Makefile b/Source/Makefile
index 3e96e0b..96c3f7d 100644
--- a/Source/Makefile
+++ b/Source/Makefile
@@ -47,7 +47,7 @@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
$(CC) $< -o $@ $(DEFINE) $(CC_FLAGS)
$(PROJECT).elf:
- $(LINKER) Obj/*.o -o Exe/$(PROJECT).elf $(LIBS)
+ $(LINKER) Obj/*.o -o Exe/$(PROJECT).elf $(LIBS) -Wl,--gc-sections
$(PROJECT).exe:
$(ELF2EXE) Exe/$(PROJECT).elf Exe/$(PROJECT).exe $(ELF2EXE_FLAGS)