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


> 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.


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