summaryrefslogtreecommitdiffstats
path: root/bsps
diff options
context:
space:
mode:
authorShashvat Jain <shashvatjain2002@gmail.com>2018-11-30 11:39:29 -0500
committerJoel Sherrill <joel@rtems.org>2018-11-30 11:01:16 -0600
commit8b3ca0cb4d05aca68b8d7ebc51443ef7c6344058 (patch)
tree177ba425350cbf5b0c65bb6b775a313a8c3ea19d /bsps
parentpowerpc/ss555:Add per-section compilation and linking support(GCI 2018) (diff)
downloadrtems-8b3ca0cb4d05aca68b8d7ebc51443ef7c6344058.tar.bz2
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
Diffstat (limited to 'bsps')
-rw-r--r--bsps/powerpc/qemuppc/config/qemuppc.cfg5
1 files changed, 2 insertions, 3 deletions
diff --git a/bsps/powerpc/qemuppc/config/qemuppc.cfg b/bsps/powerpc/qemuppc/config/qemuppc.cfg
index 5e919c1b9f..1fd28c8ecb 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)