[PATCH 1/3] mtd-utils: new memory wrappers

Mike Frysinger vapier at gentoo.org
Thu Sep 30 20:47:09 EDT 2010


On Thu, Sep 30, 2010 at 02:56, Artem Bityutskiy wrote:
> On Thu, 2010-09-30 at 02:18 -0400, Mike Frysinger wrote:
>> nice: use -ffunction-sections -fdata-sections -Wl,--gc-sections.
>> additional advantage of saving space across all linked in library code
>> and not just common.h stuff.
>
> Sorry, I never dealt with -ffunction-sections stuff, I do not know the
> price of this, so I basically cannot judge. But of course removing
> unused code is a good thing to do. So you seem to be more competent in
> these question, just go ahead with you nice cleanups!

i get nice results even now with these options.

total shrinkage in bytes: 103298(.text) 1344(.data) 128(.bss)

individual totals:
docfdisk -42 -16
doc_loadbios -42 -16
flashcp -34 -8
flash_erase -4746 -32
flash_info -42 -16
flash_lock -42 -16
flash_otp_dump -42 -16
flash_otp_info -34 -16
flash_unlock -42 -16
ftl_check -42 -16
ftl_format -42 -16
jffs2dump -34 -16
mkfs.jffs2 -1466 -32
mkfs.ubifs -5106 -24
mtd_debug -66 -16
nanddump -34 -16
nandtest -66 -16
nandwrite -34 -32 -32
nftldump -34 -16 -32
nftl_format -42 -16
recv_image -914 -16 -32
rfddump -34 -16
rfdformat -34 -16
serve_image -2770 -16 -32
sumtool -66 -32
ubirsvol -5514 -80
ubicrc32 -1794 -56
mtdinfo -14298 -88
ubimkvol -5258 -72
ubiupdatevol -7986 -80
ubinize -1866 -48
ubirename -6586 -72
ubidetach -9842 -80
ubirmvol -6170 -72
ubiformat -15018 -56
ubinfo -5002 -88
ubiattach -8114 -88
-mike



More information about the linux-mtd mailing list