[PATCH] add modsizes target
Denis Vlasenko
vda at ilport.com.ua
Mon Mar 13 06:43:03 UTC 2006
Hi Rob,
This patch
* adds modsizes target, which lists size of all *.o files in build tree.
This complements "make sizes", because "make sizes" doesn't show
some types of objects (example: initializers for struct foo f = { 1, 2, 3 }; )
* marks sizes and modsizes as .PHONY, or else "make sizes >sizes" works
as intended only on first run :)
Sample output of "make modsizes":
text+data text+rodata rwdata bss filename
0 0 0 0 init/init_shared.o
0 0 0 0 libbb/vdprintf.o
0 0 0 0 libbb/vfork_daemon_rexec.o
1 1 0 0 archival/libunarchive/header_skip.o
...
9443 9427 16 1412 networking/inetd.o
9996 9980 16 324 shell/cmdedit.o
10465 10073 392 543 miscutils/devfsd.o
11338 11326 12 8392 util-linux/fsck_minix.o
11398 11398 0 0 miscutils/bbconfig.o
12652 12608 44 138336 archival/dpkg.o
13612 13384 228 8552 shell/hush.o
13768 13740 28 44 modutils/insmod.o
16542 16522 20 676 editors/awk.o
19805 19801 4 896 editors/vi.o
24470 23306 1164 13360 shell/msh.o
26794 26790 4 904 miscutils/hdparm.o
45844 45600 244 1856 shell/ash.o
49597 49565 32 11388 util-linux/fdisk.o
55434 55158 276 4468 scripts/config/zconf.tab.o
64524 64524 0 12 applets/applets.o
Please apply, and then do chmod +x scripts/modsizes.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modsizes.patch
Type: text/x-diff
Size: 3141 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060313/321cb8be/attachment.bin
More information about the busybox
mailing list