Statically linked binary way way too big
Jakub Jelinek
jakub@redhat.com
Wed Oct 16 08:53:00 GMT 2002
On Wed, Oct 16, 2002 at 08:48:21AM -0700, Roland McGrath wrote:
> > It can, if the module has been compiled with
> > -ffunction-sections. However, for glibc, this is not an issue, because
> > no module contains more than one function.
>
> This is not true, though ideally it should be. The worst offender is
> malloc, which is all in one huge module and so all the unused cruft gets
> linked into every static program. This is truly unacceptable because
> malloc_stats calls fprintf and so the malloc module brings in all of stdio.
Yeah, malloc_stats should be surely put into a separate file.
Jakub
More information about the Libc-alpha
mailing list