summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/virtex/make/custom/virtex.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/powerpc/virtex/make/custom/virtex.cfg')
-rw-r--r--c/src/lib/libbsp/powerpc/virtex/make/custom/virtex.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/virtex/make/custom/virtex.cfg b/c/src/lib/libbsp/powerpc/virtex/make/custom/virtex.cfg
index 8af407292b..05110a2adb 100644
--- a/c/src/lib/libbsp/powerpc/virtex/make/custom/virtex.cfg
+++ b/c/src/lib/libbsp/powerpc/virtex/make/custom/virtex.cfg
@@ -16,6 +16,9 @@ CPU_CFLAGS = -mcpu=403 -Dppc405 -meabi -msdata=sysv -fno-common
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+
+LDFLAGS = -Wl,--gc-sections
define bsp-post-link
$(default-bsp-post-link)