[rtems commit] powerpc/.../mpc8260ads.cfg: Disable per function sections

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


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

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

powerpc/.../mpc8260ads.cfg: Disable per function sections

updates #2565.

---

 c/src/lib/libbsp/powerpc/mpc8260ads/make/custom/mpc8260ads.cfg | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/make/custom/mpc8260ads.cfg b/c/src/lib/libbsp/powerpc/mpc8260ads/make/custom/mpc8260ads.cfg
index 71454b2..0379c3b 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/make/custom/mpc8260ads.cfg
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/make/custom/mpc8260ads.cfg
@@ -17,6 +17,8 @@ CPU_CFLAGS = -mcpu=603e -mstrict-align -Dmpc8260 \
 
 # optimize flag: typically -O2
 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
-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