powerpc/.../haleakala.cfg: Disable per function sections.

updates #2561.
This commit is contained in:
Joel Sherrill
2016-02-05 07:51:48 -06:00
parent e4b5289ad3
commit c5ce9c3c21

View File

@@ -17,9 +17,11 @@ CPU_CFLAGS = -mcpu=405 -Dppc405
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V = -O1 -g
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections
# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2561.
# The following two lines enable compiling and linking on per element.
# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
# LDFLAGS = -Wl,--gc-sections
define bsp-post-link
$(default-bsp-post-link)