This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Build small glibc-2.1.2 for floppy dist
- To: help-gcc at gnu dot org
- Subject: Build small glibc-2.1.2 for floppy dist
- From: Mark Wormgoor <riddles at cistron dot nl>
- Date: Sun, 26 Dec 1999 22:04:50 +0100
- Newsgroups: gnu.gcc.help,comp.os.linux.development.system,nl.comp.os.linux
- Organization: Cistron Internet Services B.V.
- Xref: wodc7nx0 gnu.gcc.help:2298 comp.os.linux.development.system:8997 nl.comp.os.linux:21183
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/ *
***************************************************************