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

Adrian Bunk
2007-09-05T19:27:25Z

On Wed, Sep 05, 2007 at 02:43:21PM +0100, Denys Vlasenko wrote:

> Build system: section garbage collection for vmlinux
>
> Newer gcc and binutils can do dead code and data removal
> at link time. It is achieved using combination of
> -ffunction-sections -fdata-sections options for gcc and
> --gc-sections for ld.
>...

In the long term I'd like us to be able to compile the whole (or at
least most of) the kernel with one "-combine -fwhole-program" gcc call
which should bring the same positive effect plus enables gcc to do
additional optimizations.

That's meant as a remark, not against your patch (which is for a lower
hanging fruit).

> vda

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed