From ac84d42e7241677828d08191fb0b970839f8535d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 26 Oct 2015 09:10:22 +0100 Subject: [PATCH] bsp/qoriq: Function and data sections --- c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq_t2080rdb.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq_t2080rdb.cfg b/c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq_t2080rdb.cfg index 110316fc0f..814526d9ac 100644 --- a/c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq_t2080rdb.cfg +++ b/c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq_t2080rdb.cfg @@ -10,3 +10,6 @@ CPU_CFLAGS = -mcpu=e6500 -m32 -msdata=sysv -fno-common \ -D__ppc_generic CFLAGS_OPTIMIZE_V = -O2 -g +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections