[rtems commit] pc386.cfg: Add disabled per-function-sections
Joel Sherrill
joel at rtems.org
Fri Mar 11 20:14:54 UTC 2016
Module: rtems
Branch: master
Commit: f6b798a652045eda6c3b8cfa52393fca64118f48
Changeset: http://git.rtems.org/rtems/commit/?id=f6b798a652045eda6c3b8cfa52393fca64118f48
Author: Joel Sherrill <joel at rtems.org>
Date: Thu Mar 10 15:48:49 2016 -0600
pc386.cfg: Add disabled per-function-sections
updates #2638.
---
c/src/lib/libbsp/i386/pc386/make/custom/pc386.cfg | 4 ++++
1 file changed, 4 insertions(+)
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 9f7428d..af912e7 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
More information about the vc
mailing list