arm/.../lpc1768_embed.cfg: Disable per function sections

updates #2576.
This commit is contained in:
Joel Sherrill
2016-02-06 10:24:54 -06:00
parent 8755f2a3d0
commit e41d8ce5a7

View File

@@ -10,9 +10,10 @@ 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.