[rtems commit] m68k/.../mcf52235.cfg: Disable per function sections

Joel Sherrill joel at rtems.org
Sat Feb 6 16:26:40 UTC 2016


Module:    rtems
Branch:    master
Commit:    7cd9f934ff96e2416877083e23ab1dba4be85f92
Changeset: http://git.rtems.org/rtems/commit/?id=7cd9f934ff96e2416877083e23ab1dba4be85f92

Author:    Joel Sherrill <joel at rtems.org>
Date:      Sat Feb  6 09:57:46 2016 -0600

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

updates #2570.

---

 c/src/lib/libbsp/m68k/mcf52235/make/custom/mcf52235.cfg | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/m68k/mcf52235/make/custom/mcf52235.cfg b/c/src/lib/libbsp/m68k/mcf52235/make/custom/mcf52235.cfg
index b4431aa..6216111 100644
--- a/c/src/lib/libbsp/m68k/mcf52235/make/custom/mcf52235.cfg
+++ b/c/src/lib/libbsp/m68k/mcf52235/make/custom/mcf52235.cfg
@@ -13,9 +13,11 @@ CPU_CFLAGS = -mcpu=52235
 
 # 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 #2570.
+# The following two lines enable compiling and linking on per element.
+# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+# LDFLAGS = -Wl,--gc-sections
 
 # This defines the operations performed on the linked executable.
 # is currently required.




More information about the vc mailing list