MIPS code size strangeness
Eugene Grosbein
eugen at grosbein.net
Mon Nov 21 16:44:52 UTC 2016
On 21.11.2016 23:10, Michael Zhilin wrote:
> Eugene,
>
> LZMA compression?
Of course. About 30MB uncompressed.
> Could you please share list of your mfsroot files? I'll check tonight what can be done with MIPS bits...
First, our kernel is pretty large for restricted space, mine is 5MB uncompressed.
kern_jail.o is totally unneeded but occupies 248456 bytes.
swap_pager.o occupies 227556 bytes despite of NO_SWAPPING kernel option,
plus vm_pageout.o has 157676 bytes in size.
As for userland, I need complete openssl/openssh{d} "packs" and many other generic UNIX tools:
640 openssl
220 ssh
212 awk
208 less
176 ftp
160 telnet
144 netstat
136 systat
112 grep
96 sftp
92 xz
92 top
92 ee
84 tip
80 sort
68 ssh-keygen
68 find
68 bsdtar
...
They depend on lots of shared libraries, largest one is libarchive.so.6:
864 libarchive.so.6
768 libprivatessh.so.5
480 libssl.so.8
236 libprivateucl.so.1
184 liblzma.so.5
164 libpmc.so.5
132 libbsm.so.3
120 libsysdecode.so.5
84 libusb.so.3
84 libgnuregex.so.5
80 libformw.so.5
76 libbz2.so.4
72 libfetch.so.6
68 libform.so.5
56 libpam.so.6
52 libsmb.so.4
...
Some binaries located in /sbin are bigger for MIPS than for amd64, too:
896 init # statically linked
188 ifconfig
184 ipfw
168 fsck_ffs
116 dhclient
88 setkey
48 newfs
40 ping
...
And /usr/sbin, too:
960 tcpdump
864 hostapd
324 sshd
152 ntpdate
...
Eugene Grosbein
More information about the freebsd-mips
mailing list