[rtems commit] powerpc/qemuppc: Add per-section compilation and linking support (GCI 2018)
Joel Sherrill
joel at rtems.org
Fri Nov 30 17:04:01 UTC 2018
Module: rtems
Branch: master
Commit: 8b3ca0cb4d05aca68b8d7ebc51443ef7c6344058
Changeset: http://git.rtems.org/rtems/commit/?id=8b3ca0cb4d05aca68b8d7ebc51443ef7c6344058
Author: Shashvat Jain <shashvatjain2002 at gmail.com>
Date: Fri Nov 30 11:39:29 2018 -0500
powerpc/qemuppc:Add per-section compilation and linking support (GCI 2018)
The size of the sample executables without this option were:
text data bss dec hex filename
101320 1604 4184764 4287688 416cc8 ./base_sp.exe
247452 2656 4183748 4433856 43a7c0 ./capture.exe
283516 29564 4183788 4496868 449de4 ./cdtest.exe
948220 162032 4183744 5293996 50c7ac ./cxx_iostream.exe
642568 5234 4181152 4828954 49af1a ./fileio.exe
133733 1960 4184372 4320065 41eb41 ./hello.exe
314124 6796 4179844 4500764 44ad1c ./loopback.exe
60592 680 4185536 4246808 40cd18 ./minimum.exe
130936 2112 4184228 4317276 41e05c ./nsecs.exe
180161 2376 4183956 4366493 42a09d ./paranoia.exe
538248 13040 4173628 4724916 4818b4 ./pppd.exe
104753 1636 4184736 4291125 417a35 ./ticker.exe
104608 1596 4184788 4290992 4179b0 ./unlimited.exe
The size of the sample executables with this option were:
text data bss dec hex filename
611756 58492 4183964 4854212 4a11c4 ./cxx_iostream.exe
630360 5210 4181168 4816738 497f62 ./fileio.exe
123653 1956 4184396 4310005 41c3f5 ./hello.exe
295200 6776 4179868 4481844 446334 ./loopback.exe
60608 668 4185560 4246836 40cd34 ./minimum.exe
123704 2108 4184220 4310032 41c410 ./nsecs.exe
170589 2364 4183980 4356933 427b45 ./paranoia.exe
523060 13016 4173648 4709724 47dd5c ./pppd.exe
99533 1632 4184732 4285897 4165c9 ./ticker.exe
103608 1584 4184784 4289976 4175b8 ./unlimited.exe
231572 2644 4183736 4417952 4369a0 ./capture.exe
96544 1600 4184760 4282904 415a18 ./base_sp.exe
223456 10112 4184260 4417828 436924 ./cdtest.exe
Closes #2564
---
bsps/powerpc/qemuppc/config/qemuppc.cfg | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/bsps/powerpc/qemuppc/config/qemuppc.cfg b/bsps/powerpc/qemuppc/config/qemuppc.cfg
index 5e919c1..1fd28c8 100644
--- a/bsps/powerpc/qemuppc/config/qemuppc.cfg
+++ b/bsps/powerpc/qemuppc/config/qemuppc.cfg
@@ -13,10 +13,9 @@ CPU_CFLAGS = -mcpu=603e
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
-# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2564.
# The following two lines enable compiling and linking on per element.
-# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
-# LDFLAGS = -Wl,--gc-sections
+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