summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/make/custom/pc386.cfg
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-03-11 16:07:35 -0600
committerJoel Sherrill <joel@rtems.org>2016-03-11 16:07:35 -0600
commit5e368e8441e21e484a09e0d743a5b6b934e45047 (patch)
tree36587d42b3689ea627bf739224b7aee647bd891c /c/src/lib/libbsp/i386/pc386/make/custom/pc386.cfg
parentlm32/shared/.../ckinit.c: Fix typo so fast idle on simulator is enabled (diff)
downloadrtems-5e368e8441e21e484a09e0d743a5b6b934e45047.tar.bz2
pc386: Fix linker usage issues with -r and function sections
closes #2638.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/i386/pc386/make/custom/pc386.cfg6
1 files changed, 3 insertions, 3 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 af912e7563..c87870410e 100644
--- a/c/src/lib/libbsp/i386/pc386/make/custom/pc386.cfg
+++ b/c/src/lib/libbsp/i386/pc386/make/custom/pc386.cfg
@@ -20,9 +20,9 @@ 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
+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