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

Joel Sherrill joel at rtems.org
Sat Feb 6 14:53:52 UTC 2016


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

Author:    Joel Sherrill <joel at rtems.org>
Date:      Fri Feb  5 07:51:48 2016 -0600

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

updates #2561.

---

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

diff --git a/c/src/lib/libbsp/powerpc/haleakala/make/custom/haleakala.cfg b/c/src/lib/libbsp/powerpc/haleakala/make/custom/haleakala.cfg
index e43b739..3f7c635 100644
--- a/c/src/lib/libbsp/powerpc/haleakala/make/custom/haleakala.cfg
+++ b/c/src/lib/libbsp/powerpc/haleakala/make/custom/haleakala.cfg
@@ -17,9 +17,11 @@ CPU_CFLAGS = -mcpu=405 -Dppc405
 # -O4 is ok for RTEMS
 # NOTE: some level of -O may be actually required by inline assembler
 CFLAGS_OPTIMIZE_V = -O1 -g
-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
 
 define bsp-post-link
 	$(default-bsp-post-link)




More information about the vc mailing list