Statically linked binary way way too big
Denis Vlasenko
vda@port.imtp.ilyichevsk.odessa.ua
Tue Oct 15 22:37:00 GMT 2002
I needed to statically link an application.
I ended up with a.out of 406400 bytes after strip.
Based on release announcements ("we don't want
to hear about size") and discussions with Linus
seen in archive I know that glibc does not try
to minimize library size, but nearly half a megabyte
can never be right.
Is there some problems with linker? Does it discard
all unused sections?
Oh, and here is the source code of that program:
int main() {
return 0;
}
--
vda
More information about the Libc-alpha
mailing list