lpc1768_mbed.cfg: Turn on per function sections

Closes #2576.
This commit is contained in:
Joel Sherrill
2016-03-22 09:58:04 -05:00
parent 9e2acee742
commit 1a738edb39

View File

@@ -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.