summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-03-10 15:48:49 -0600
committerJoel Sherrill <joel@rtems.org>2016-03-10 18:08:52 -0600
commitf6b798a652045eda6c3b8cfa52393fca64118f48 (patch)
tree210b57290a1ccf69a7398abaf1cc7795659ff91e
parentepiphany/epiphany_sim: Add per-section compilation and linking support (diff)
downloadrtems-f6b798a652045eda6c3b8cfa52393fca64118f48.tar.bz2
pc386.cfg: Add disabled per-function-sections
updates #2638.
-rw-r--r--c/src/lib/libbsp/i386/pc386/make/custom/pc386.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/make/custom/pc386.cfg b/c/src/lib/libbsp/i386/pc386/make/custom/pc386.cfg
index 9f7428dd3a..af912e7563 100644
--- a/c/src/lib/libbsp/i386/pc386/make/custom/pc386.cfg
+++ b/c/src/lib/libbsp/i386/pc386/make/custom/pc386.cfg
@@ -19,6 +19,10 @@ endif
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g
+# Per function sections disabled per https://devel.rtems.org/ticket/2638
+# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+#
+# LDFLAGS = -Wl,--gc-sections
# Here is the rule to actually build a $(ARCH)/foo$(EXEEXT)
# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm