From 8b6273a843c0e105d4b8aa77c48c8eb3290ef5f2 Mon Sep 17 00:00:00 2001 From: Shashvat Jain Date: Fri, 30 Nov 2018 10:03:25 -0500 Subject: powerpc/ss555: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 116512 1340 15400 133252 20884 ./base_sp.exe 246172 2328 18324 266824 41248 ./capture.exe 319368 3520 16496 339384 52db8 ./cdtest.exe 1077464 22428 23284 1123176 112368 ./cxx_iostream.exe 640632 4916 28408 673956 a48a4 ./fileio.exe 148844 1692 15572 166108 288dc ./hello.exe 328648 6252 22408 357308 573bc ./loopback.exe 95828 1196 12224 109248 1aac0 ./minimum.exe 145576 1872 15528 162976 27ca0 ./nsecs.exe 194932 2100 16172 213204 340d4 ./paranoia.exe 537060 12460 45124 594644 912d4 ./pppd.exe 119620 1380 15464 136464 21510 ./ticker.exe 119388 1324 19300 140012 222ec ./unlimited.exe The size of the sample executables with this option were: text data bss dec hex filename 235000 2336 16628 253964 3e00c ./cxx_iostream.exe 627252 4892 28108 660252 a131c ./fileio.exe 137648 1676 15528 154852 25ce4 ./hello.exe 308616 6236 22336 337188 52524 ./loopback.exe 89564 1180 12144 102888 191e8 ./minimum.exe 137184 1856 15432 154472 25b68 ./nsecs.exe 184264 2084 16144 202492 316fc ./paranoia.exe 520768 12440 45020 578228 8d2b4 ./pppd.exe 113260 1364 15356 129980 1fbbc ./ticker.exe 117236 1308 19272 137816 21a58 ./unlimited.exe 110584 1324 15308 127216 1f0f0 ./base_sp.exe 229172 2316 18288 249776 3cfb0 ./capture.exe 233980 2320 16436 252736 3db40 ./cdtest.exe Closes #2563 --- bsps/powerpc/ss555/config/ss555.cfg | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bsps') diff --git a/bsps/powerpc/ss555/config/ss555.cfg b/bsps/powerpc/ss555/config/ss555.cfg index 7054eaaea1..f4c6ca22a7 100644 --- a/bsps/powerpc/ss555/config/ss555.cfg +++ b/bsps/powerpc/ss555/config/ss555.cfg @@ -19,10 +19,9 @@ CPU_CFLAGS = -mcpu=505 # optimize flag: typically -O2 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions -# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2563. # 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) -- cgit v1.2.3