[rtems commit] powerpc/mpc8260ads: Add per-section compilation and linking support (GCI 2018)
Joel Sherrill
joel at rtems.org
Fri Nov 30 19:29:25 UTC 2018
Module: rtems
Branch: master
Commit: c056f219f8111e05d22822b79d9b70ced38f3f89
Changeset: http://git.rtems.org/rtems/commit/?id=c056f219f8111e05d22822b79d9b70ced38f3f89
Author: Shashvat Jain <shashvatjain2002 at gmail.com>
Date: Fri Nov 30 13:07:17 2018 -0500
powerpc/mpc8260ads: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
257876 3416 148812 410104 641f8 ./capture.exe
126956 2428 145836 275220 43314 ./base_sp.exe
330400 4600 146916 481916 75a7c ./cdtest.exe
1092476 23588 153684 1269748 135ff4 ./cxx_iostream.exe
654892 6056 158868 819816 c8268 ./fileio.exe
159260 2812 145956 308028 4b33c ./hello.exe
339392 7344 152824 499560 79f68 ./loopback.exe
106388 2276 142644 251308 3d5ac ./minimum.exe
156348 2960 145980 305288 4a888 ./nsecs.exe
201020 3204 146592 350816 55a60 ./paranoia.exe
547684 13548 175556 736788 b3e14 ./pppd.exe
130108 2468 145872 278448 43fb0 ./ticker.exe
129740 2436 149696 281872 44d10 ./unlimited.exe
The size of the sample executables with this option were:
text data bss dec hex filename
246508 2856 147036 396400 60c70 ./cxx_iostream.exe
641752 6016 158548 806316 c4dac ./fileio.exe
148264 2800 145916 296980 48814 ./hello.exe
319252 7340 152756 479348 75074 ./loopback.exe
100396 2288 142556 245240 3bdf8 ./minimum.exe
148200 2932 145892 297024 48840 ./nsecs.exe
190520 3192 146552 340264 53128 ./paranoia.exe
531300 13544 175480 720324 afdc4 ./pppd.exe
124008 2472 145788 272268 4278c ./ticker.exe
127848 2432 149660 279940 44584 ./unlimited.exe
121272 2432 145752 269456 41c90 ./base_sp.exe
241104 3412 148768 393284 60044 ./capture.exe
245424 2936 146876 395236 607e4 ./cdtest.exe
Closes #2565
---
bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg b/bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg
index d335e92..7b5a9dc 100644
--- a/bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg
+++ b/bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg
@@ -16,7 +16,6 @@ CPU_CFLAGS = -mcpu=603e -mstrict-align -meabi -msdata=sysv -fno-common
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
-# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2565.
# 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
More information about the vc
mailing list