diff --git a/c/src/lib/libbsp/m68k/mcf5329/make/custom/mcf5329.cfg b/c/src/lib/libbsp/m68k/mcf5329/make/custom/mcf5329.cfg index e1f5734061..f742152a96 100644 --- a/c/src/lib/libbsp/m68k/mcf5329/make/custom/mcf5329.cfg +++ b/c/src/lib/libbsp/m68k/mcf5329/make/custom/mcf5329.cfg @@ -15,6 +15,9 @@ CPU_CFLAGS = -mcpu=5307 # optimize flag: typically -O2 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections # This defines the operations performed on the linked executable. # is currently required.