[rtems commit] m68k/.../uC5282.cfg: Disable per function sections
Joel Sherrill
joel at rtems.org
Sat Feb 6 16:26:41 UTC 2016
Module: rtems
Branch: master
Commit: 8755f2a3d072c442962aed8df330bd9a18bae204
Changeset: http://git.rtems.org/rtems/commit/?id=8755f2a3d072c442962aed8df330bd9a18bae204
Author: Joel Sherrill <joel at rtems.org>
Date: Sat Feb 6 10:22:12 2016 -0600
m68k/.../uC5282.cfg: Disable per function sections
updates #2575.
---
c/src/lib/libbsp/m68k/uC5282/make/custom/uC5282.cfg | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/m68k/uC5282/make/custom/uC5282.cfg b/c/src/lib/libbsp/m68k/uC5282/make/custom/uC5282.cfg
index c94e236..d298234 100644
--- a/c/src/lib/libbsp/m68k/uC5282/make/custom/uC5282.cfg
+++ b/c/src/lib/libbsp/m68k/uC5282/make/custom/uC5282.cfg
@@ -13,9 +13,11 @@ CPU_CFLAGS = -mcpu=5282
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g
-CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
-LDFLAGS = -Wl,--gc-sections
+# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2575.
+# 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)
More information about the vc
mailing list