diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/make/custom/tqm8xx.inc b/c/src/lib/libbsp/powerpc/tqm8xx/make/custom/tqm8xx.inc index a932314651..5bd08e3d0b 100644 --- a/c/src/lib/libbsp/powerpc/tqm8xx/make/custom/tqm8xx.inc +++ b/c/src/lib/libbsp/powerpc/tqm8xx/make/custom/tqm8xx.inc @@ -13,6 +13,9 @@ CPU_CFLAGS = -mcpu=860 -Dmpc860 \ # optimize flag: typically -O2 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections define bsp-post-link cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)