From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: Date: Sat, 20 Jul 1996 20:42:15 -0500 (CDT) From: Richard Henderson Subject: Re: shared libs? In-Reply-To: Ben Goodwin wrote: > > I just installed the elfball from atheist.tamu.edu .. > I'm compiling stuff ok, but the binaries still seem too > big.. A simple hello test file produces only a 12k file, and > compiling with -static makes it 650k .. so it does kinda seem to work. > But compiling gawk as elf and all (no funky configuration involved), > it comes to like 550k.. and what's more interesting, the RH 3.0.3 gawk is > about 250k .. an ld on gawk shows: > [tty1:phoenix.acol.com] [/work/gawk-2.15.6] # ldd gawk > libm.so.6 => /usr/lib/libm.so.6 (0x0000015555556000) > libc.so.6 => /lib/libc.so.6 (0x0000015555682000) > /lib/ld.so.1 => /lib/ld.so.1 (0x0000000000000000) Even without -g, there is some amount of debugging information generated. This minimal amount is there so that you can link some files with -g, some without, and still be able to debug the -g files. Stripping the binary will get rid of the info. For a simple hello program the unstripped size is 12865 and the stripped is 4768. r~ -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null