m68k/.../gen68340.cfg: Disable per function sections

updates #2573.
This commit is contained in:
Joel Sherrill
2016-02-06 10:12:14 -06:00
parent 1c3dd579f1
commit 50ae9957f8
@@ -13,6 +13,8 @@ CPU_CFLAGS = -mcpu=cpu32
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections
# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2573.
# The following two lines enable compiling and linking on per element.
# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
# LDFLAGS = -Wl,--gc-sections