[PATCH] use per function sections + --gc-sections: saves ~5k
Denis Vlasenko
vda at ilport.com.ua
Thu Mar 2 22:24:59 PST 2006
Hi,
This patch passes -ffunction-sections -fdata-sections to gcc
and --gc-sections to ld. Result:
# size busybox.org.tst/busybox busybox.sections.tst/busybox
text data bss dec hex filename
920143 12268 1047076 1979487 1e345f busybox.org.tst/busybox
915759 10616 1045572 1971947 1e16eb busybox.sections.tst/busybox
"make sizes" diff:
...
@@ -3445,7 +3371,6 @@
00000102 t getcell
00000102 t process_inodes
00000103 T cp_main
-00000103 T rtnl_from_file
00000104 T ar_main
00000104 T cpio_main
00000104 T env_main
@@ -3591,7 +3516,6 @@
0000015c t subevalvar
00000160 t fill_package_struct
00000160 T rtnl_rtntype_a2n
-00000163 T rtnl_listen
00000166 t remove_package
00000167 t check_dep
00000168 t parse_stream_outer
@@ -3884,9 +3808,7 @@
00000400 b root_block
00000400 d rtnl_rtdsfield_tab
00000400 d rtnl_rtprot_tab
-00000400 d rtnl_rtrealm_tab
00000400 d rtnl_rtscope_tab
-00000400 d rtnl_rttable_tab
00000400 b super_block_buffer
00000400 b super_block_buffer
00000401 b line.1
Also available at http://195.66.192.167/linux/bbox/sections.patch
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sections.patch
Type: text/x-diff
Size: 1714 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20060303/8ec6221b/sections-0001.bin
More information about the busybox
mailing list