[rtems commit] bsp/qoriq: Enable linker garbage collection

Sebastian Huber sebh at rtems.org
Thu Mar 2 14:27:12 UTC 2017


Module:    rtems
Branch:    master
Commit:    62f16ad4e32370f82d986f926ec60bc70db1e980
Changeset: http://git.rtems.org/rtems/commit/?id=62f16ad4e32370f82d986f926ec60bc70db1e980

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Mar  2 15:20:19 2017 +0100

bsp/qoriq: Enable linker garbage collection

---

 c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc | 3 +++
 1 file changed, 3 insertions(+)

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 63bc009..3fcc7ce 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



More information about the vc mailing list