This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Statically linked binary way way too big


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]