summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-03-22 09:58:04 -0500
committerJoel Sherrill <joel@rtems.org>2016-03-22 10:10:38 -0500
commit1a738edb39d462b9d99be4537782934f5ec56ca5 (patch)
tree482c27fd18a764e240634de8bcd25015cf32ea07
parentpsxtests/psxobj01: Fix for RTEMS_DEBUG (diff)
downloadrtems-1a738edb39d462b9d99be4537782934f5ec56ca5.tar.bz2
lpc1768_mbed.cfg: Turn on per function sections
Closes #2576.
-rw-r--r--c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg7
1 files changed, 2 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg b/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg
index 7923264ecf..3e9255e88f 100644
--- a/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg
+++ b/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg
@@ -9,11 +9,8 @@ RTEMS_CPU = arm
CPU_CFLAGS = -march=armv7-m -mthumb
CFLAGS_OPTIMIZE_V = -O2 -ggdb3
-
-# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2561.
-# Add CFLAGS and LDFLAGS for compiling and linking with per item sections
-# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
-# LDFLAGS = -Wl,--gc-sections
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+LDFLAGS = -Wl,--gc-sections
BINEXT?=.bin
# This defines the operations performed on the linked executable.