Re: [PATCH 3/3] build system: section garbage collection for vmlinux

Sam Ravnborg
2007-09-06T22:34:00Z

On Thu, Sep 06, 2007 at 11:55:52AM +0100, Denys Vlasenko wrote:
>
> > Doing a normal kernel build will link vmlinux three or four times.
> > If we introduce --gc-sections we should add a preparational link of
> > vmlinux where we use --gc-sections and skip it for the rest of the links
> > assuming that --gc-sections takes some time for ld to do.
>
> Yes, this will speed up things a bit.
>
> However, for me build time is totally dominated by CC stages, not LD.

A typical developer workflow is editing a single file
and then build the kernel.
Here CC has much less impact than LD - and this is the case we shall optimize for.

Sam