busybox/util-linux
Denys Vlasenko e6a2f4cc5a libbb: make bb_common_bufsiz1 1 kbyte, add capability to use bss tail for it
The config item is FEATURE_USE_BSS_TAIL. When it is off (default):

function                                             old     new   delta
read_config                                          210     228     +18
doCommands                                          2279    2294     +15
ipneigh_list_or_flush                                763     772      +9
ipaddr_list_or_flush                                1256    1261      +5
display_process_list                                1301    1306      +5
conspy_main                                         1378    1383      +5
do_lzo_compress                                      352     355      +3
do_lzo_decompress                                    565     567      +2
push                                                  46      44      -2
inetd_main                                          2136    2134      -2
uevent_main                                          421     418      -3
addLines                                              97      92      -5
bb_common_bufsiz1                                   8193    1024   -7169
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 8/5 up/down: 62/-7181)        Total: -7119 bytes
   text	   data	    bss	    dec	    hex	filename
 829850	   4086	   9080	 843016	  cdd08	busybox_old
 829901	   4086	   1904	 835891	  cc133	busybox_unstripped

FEATURE_USE_BSS_TAIL=y:

read_config                                          210     228     +18
doCommands                                          2279    2294     +15
ipneigh_list_or_flush                                763     772      +9
ipaddr_list_or_flush                                1256    1261      +5
display_process_list                                1301    1306      +5
conspy_main                                         1378    1383      +5
do_lzo_compress                                      352     355      +3
do_lzo_decompress                                    565     567      +2
inetd_main                                          2136    2134      -2
bb_common_bufsiz1                                   8193       -   -8193
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 8/1 up/down: 62/-8195)        Total: -8133 bytes
   text	   data	    bss	    dec	    hex	filename
 829850	   4086	   9080	 843016	  cdd08	busybox_old
 829911	   4086	    880	 834877	  cbd3d	busybox_unstripped

FIXME: setup_common_bufsiz() calls are missing.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-04-21 17:39:11 +02:00
..
volume_id blkid: add bcache support 2015-12-16 14:42:25 -05:00
acpid.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
blkdiscard.c blkdiscard: new applet 2016-01-02 01:18:32 +01:00
blkid.c blkid: if parameters are given, do not scan /dev 2012-03-03 15:09:07 +01:00
blockdev.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
Config.src setarch: add support for '-R' (disable randomization) 2015-10-19 23:26:50 +02:00
dmesg.c dmesg: add -r option to print raw format even when FEATURE_DMESG_PRETTY is enabled 2015-08-24 21:08:02 +02:00
fatattr.c fatattr: use the standard type for 32-bit int 2014-07-04 15:16:46 +02:00
fbset.c Use bb_error_msg instead of bb_info_msg in all commented-out debug printouts 2016-03-30 16:04:37 +02:00
fdformat.c build system: -fno-builtin-printf 2015-10-07 22:42:45 +02:00
fdisk_aix.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
fdisk_gpt.c build system: -fno-builtin-printf 2015-10-07 22:42:45 +02:00
fdisk_osf.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
fdisk_sgi.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
fdisk_sun.c fdisk_sun: fix partition alignment 2013-02-11 00:22:59 +01:00
fdisk.c build system: -fno-builtin-printf 2015-10-07 22:42:45 +02:00
findfs.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
flock.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
freeramdisk.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
fsck_minix.c build system: -fno-builtin-printf 2015-10-07 22:42:45 +02:00
fstrim.c fstrim: fix help text 2015-02-04 15:19:38 +01:00
getopt.c build system: -fno-builtin-printf 2015-10-07 22:42:45 +02:00
hexdump.c Commonalize typical [b,]k,m suffix struct 2013-07-13 23:49:45 +02:00
hwclock.c Use chomp to remove newlines 2015-03-12 20:18:51 +01:00
ipcrm.c build system: -fno-builtin-printf 2015-10-07 22:42:45 +02:00
ipcs.c Use unsigned printf/scanf conversion where more appropriate 2013-11-29 16:45:45 +01:00
Kbuild.src setarch: add support for '-R' (disable randomization) 2015-10-19 23:26:50 +02:00
losetup.c losetup: assorted fixes. Closes 6314 2013-06-27 03:45:16 +02:00
lspci.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
lsusb.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
mdev.c libbb: make bb_common_bufsiz1 1 kbyte, add capability to use bss tail for it 2016-04-21 17:39:11 +02:00
minix.h more bionic fixes 2016-03-14 19:34:15 +01:00
mkfs_ext2_test.sh mkfs_ext2: use compatible inode sizes; add -I <inodesize>. (by Vladimir) 2009-10-22 12:12:17 +02:00
mkfs_ext2.c Replace a few more bb_info_msg's by bb_error_msg or printf 2016-03-30 16:20:28 +02:00
mkfs_ext2.txt mkfs_ext2: use compatible inode sizes; add -I <inodesize>. (by Vladimir) 2009-10-22 12:12:17 +02:00
mkfs_minix.c join some common strings, -400 bytes 2015-10-08 11:24:44 +02:00
mkfs_reiser.c typo fixes 2015-05-25 13:46:36 +02:00
mkfs_vfat.c mkfs_vfat: use bb_error_msg for logging, not bb_info_msg 2016-03-30 16:23:10 +02:00
mkswap.c libbb: make bb_common_bufsiz1 1 kbyte, add capability to use bss tail for it 2016-04-21 17:39:11 +02:00
more.c libbb: make bb_common_bufsiz1 1 kbyte, add capability to use bss tail for it 2016-04-21 17:39:11 +02:00
mount.c libbb: make bb_common_bufsiz1 1 kbyte, add capability to use bss tail for it 2016-04-21 17:39:11 +02:00
nsenter.c nsenter,unshare: work around older header 2016-04-02 19:00:44 +02:00
pivot_root.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
rdate.c trivial code shrink 2015-02-18 13:47:46 +01:00
rdev.c *: style fixes. no code changes 2011-12-15 12:39:25 +01:00
readprofile.c Use unsigned printf/scanf conversion where more appropriate 2013-11-29 16:45:45 +01:00
rev.c mass removal of underscores from _BB_DIR_foo and _BB_SUID_foo 2011-01-18 13:58:01 +01:00
rtcwake.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
script.c libbb: make bb_common_bufsiz1 1 kbyte, add capability to use bss tail for it 2016-04-21 17:39:11 +02:00
scriptreplay.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
setarch.c setarch: add support for '-R' (disable randomization) 2015-10-19 23:26:50 +02:00
swaponoff.c libbb: make bb_common_bufsiz1 1 kbyte, add capability to use bss tail for it 2016-04-21 17:39:11 +02:00
switch_root.c typo fix in comment 2015-10-13 12:34:35 +02:00
uevent.c libbb: make bb_common_bufsiz1 1 kbyte, add capability to use bss tail for it 2016-04-21 17:39:11 +02:00
umount.c libbb: make bb_common_bufsiz1 1 kbyte, add capability to use bss tail for it 2016-04-21 17:39:11 +02:00
unshare.c nsenter,unshare: work around older header 2016-04-02 19:00:44 +02:00