summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-02 15:20:19 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-02 15:20:19 +0100
commit62f16ad4e32370f82d986f926ec60bc70db1e980 (patch)
treef6a73424c6cf276d4906a1f44340ca83a1526b4c
parent891b834fb5eb17d3b38da2a0d592f05f336192da (diff)
downloadrtems-62f16ad4e32370f82d986f926ec60bc70db1e980.tar.bz2
bsp/qoriq: Enable linker garbage collection
-rw-r--r--c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc b/c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc
index 63bc0099a2..3fcc7ce04c 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc
+++ b/c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc
@@ -13,3 +13,6 @@ CPU_CFLAGS = -mcpu=8540 -meabi -msdata=sysv -fno-common -mstrict-align \
-D__ppc_generic
CFLAGS_OPTIMIZE_V = -Os -g
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+
+LDFLAGS = -Wl,--gc-sections