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

Joel Sherrill joel at rtems.org
Sat Feb 6 15:53:40 UTC 2016


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

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

m68k/gen68360/.../*.cfg: Disable per function sections

updates #2566.

---

 c/src/lib/libbsp/m68k/gen68360/make/custom/gen68360.cfg     | 6 ++++--
 c/src/lib/libbsp/m68k/gen68360/make/custom/gen68360_040.cfg | 6 ++++--
 c/src/lib/libbsp/m68k/gen68360/make/custom/pgh360.cfg       | 6 ++++--
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/c/src/lib/libbsp/m68k/gen68360/make/custom/gen68360.cfg b/c/src/lib/libbsp/m68k/gen68360/make/custom/gen68360.cfg
index e98041f..e9e9a82 100644
--- a/c/src/lib/libbsp/m68k/gen68360/make/custom/gen68360.cfg
+++ b/c/src/lib/libbsp/m68k/gen68360/make/custom/gen68360.cfg
@@ -9,6 +9,8 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
 CPU_CFLAGS = -mcpu=cpu32
 
 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 #2561.
+# The following two lines enable compiling and linking on per element.
+# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+# LDFLAGS = -Wl,--gc-sections
diff --git a/c/src/lib/libbsp/m68k/gen68360/make/custom/gen68360_040.cfg b/c/src/lib/libbsp/m68k/gen68360/make/custom/gen68360_040.cfg
index 23cf917..3926ce9 100644
--- a/c/src/lib/libbsp/m68k/gen68360/make/custom/gen68360_040.cfg
+++ b/c/src/lib/libbsp/m68k/gen68360/make/custom/gen68360_040.cfg
@@ -10,6 +10,8 @@ CPU_CFLAGS = -mcpu=68040
 include $(RTEMS_ROOT)/make/custom/default.cfg
 
 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 #2561.
+# The following two lines enable compiling and linking on per element.
+# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+# LDFLAGS = -Wl,--gc-sections
diff --git a/c/src/lib/libbsp/m68k/gen68360/make/custom/pgh360.cfg b/c/src/lib/libbsp/m68k/gen68360/make/custom/pgh360.cfg
index a9f7508..1ee2560 100644
--- a/c/src/lib/libbsp/m68k/gen68360/make/custom/pgh360.cfg
+++ b/c/src/lib/libbsp/m68k/gen68360/make/custom/pgh360.cfg
@@ -9,6 +9,8 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
 CPU_CFLAGS = -mcpu32
 
 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 #2561.
+# The following two lines enable compiling and linking on per element.
+# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+# LDFLAGS = -Wl,--gc-sections




More information about the vc mailing list