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

From: Adrian Bunk
Date: Wed Sep 05 2007 - 15:27:26 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/