diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mbx8xx/make')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mbx8xx/make/custom/mbx821_002b.cfg | 1 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/mbx8xx/make/custom/mbx8xx.inc | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/make/custom/mbx821_002b.cfg b/c/src/lib/libbsp/powerpc/mbx8xx/make/custom/mbx821_002b.cfg index 312ddcba7e..093b646d58 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/make/custom/mbx821_002b.cfg +++ b/c/src/lib/libbsp/powerpc/mbx8xx/make/custom/mbx821_002b.cfg @@ -14,3 +14,4 @@ include $(RTEMS_ROOT)/make/custom/mbx8xx.inc # optimize flag: typically -O2 CFLAGS_OPTIMIZE_V = -O2 -g +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/make/custom/mbx8xx.inc b/c/src/lib/libbsp/powerpc/mbx8xx/make/custom/mbx8xx.inc index f041d03437..fcfda3189f 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/make/custom/mbx8xx.inc +++ b/c/src/lib/libbsp/powerpc/mbx8xx/make/custom/mbx8xx.inc @@ -45,7 +45,9 @@ CPU_CFLAGS = -mcpu=$(8XX_CPU_TYPE) -Dmpc$(8XX_CPU_TYPE) -D$(RTEMS_MBX_MODEL) \ # optimize flag: typically -O2 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections +LDFLAGS = -Wl,--gc-sections LDFLAGS += $(MBX8xx_LDFLAGS) define bsp-post-link |