summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-02-06 09:40:58 -0600
committerJoel Sherrill <joel@rtems.org>2016-02-06 09:41:04 -0600
commit6184b572d3c95d2d78bf8b856d8604cbcb37818a (patch)
tree7c06da76c0cc71bf2e9a8d48934e9625f6fd604c
parentpowerpc/.../mpc8260ads.cfg: Disable per function sections (diff)
downloadrtems-6184b572d3c95d2d78bf8b856d8604cbcb37818a.tar.bz2
m68k/gen68360/.../*.cfg: Disable per function sections
updates #2566.
-rw-r--r--c/src/lib/libbsp/m68k/gen68360/make/custom/gen68360.cfg6
-rw-r--r--c/src/lib/libbsp/m68k/gen68360/make/custom/gen68360_040.cfg6
-rw-r--r--c/src/lib/libbsp/m68k/gen68360/make/custom/pgh360.cfg6
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 e98041f7a1..e9e9a823e2 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 23cf917812..3926ce9a3a 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 a9f7508314..1ee256012a 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