From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Wormgoor To: help-gcc@gnu.org Subject: Build small glibc-2.1.2 for floppy dist Date: Fri, 31 Dec 1999 22:24:00 -0000 Message-ID: <386682F2.82626CF6@cistron.nl> X-SW-Source: 1999-12n/msg00357.html Message-ID: <19991231222400.FGPlcjfgZL1NfH_xWUNvHCClznF0-hjgE14DVhJ5gG0@z> Hi, For linuxrouter ( http://www.linuxrouter.org/ ) I'm currently trying to get glibc-2.1.2 to compile as small as I can. Currently, I managed to get it down to 1.116.288 bytes. However, linuxrouter is currently based on 2.0.7, which was only 651.436 after compilation. Is there any way to get it down even further without removing functionality??? If there is no way, what functions are (mostly) unnecessary and how can I disable these? Linuxrouter currently boots off of a floppy and would like to continue like that in the future. Currently, I've tried to compile glibc-2.1.2 using the following options: CFLAGS="-mcpu=i386 -O6 -fPIC" configure i386-pc-linux-gnu \ --prefix=/usr --enable-add-ons --enable-omitfp --disable-versioning \ --disable-profile --without-cvs Then compile and strip all the libs. glibc-2.0.7 LRP glibc-2.1.2 glibc-2.1.2-Redhat (as in Materhorn) (recompiled) (not stripped!) ld-2.0.7.so 44.632 88.572 344.890 libc-2.0.7.so 651.436 1.116.288 4.118.299 libcrypt-2.0.7.so 16.932 21.828 64.595 libdl-2.0.7.so 6.612 13.681 74.663 libnsl-2.0.7.so 19.044 87.540 372.604 libnss_db-2.0.7.so 18.096 19.248 196.670 libnss_dns-2.0.7.so 9.976 12.308 67.172 libnss_files-2.0.7.so 30.204 35.556 247.348 libresolv-2.0.7.so 45.104 50.216 170.564 libutil-2.0.7.so 6.692 + 8.148 + 46.504 + ------------------------------------------------------------------- Total size 848.728 1.453.385 5.703.309 Any help would really be appreciated. Kind regards, Mark Wormgoor -- *************************************************************** * |\ /| | /| / Mark Wormgoor * * | \ / | | / | / mailto:riddles@cistron.nl * * | \/ |ark |/ |/ormgoor http://riddles.www.cistron.nl/ * ***************************************************************