diff --git a/flight/CopterControl/Makefile b/flight/CopterControl/Makefile index 9acfdff41..f786df65c 100644 --- a/flight/CopterControl/Makefile +++ b/flight/CopterControl/Makefile @@ -503,6 +503,7 @@ endif CFLAGS += -Wall CFLAGS += -Werror +CFLAGS += -ffunction-sections -fdata-sections CFLAGS += -Wa,-adhlns=$(addprefix $(OUTDIR)/, $(notdir $(addsuffix .lst, $(basename $<)))) # Compiler flags to generate dependency files: CFLAGS += -MD -MP -MF $(OUTDIR)/dep/$(@F).d