From 62f16ad4e32370f82d986f926ec60bc70db1e980 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 2 Mar 2017 15:20:19 +0100 Subject: bsp/qoriq: Enable linker garbage collection --- c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc') 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 -- cgit v1.2.3