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

2007-09-14 Thread Abhishek Sagar
On 9/14/07, Sam Ravnborg <[EMAIL PROTECTED]> wrote: > > With some tweaks it worked for me. > Could you post your tweaked version - against an older kernel is OK. The inlined patch should apply cleanly on top of the patch posted on the link I mentioned before. The *.S files are the ones I chose to

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

2007-09-13 Thread Sam Ravnborg
Hi Abhisshek. On Thu, Sep 13, 2007 at 11:56:14PM +0530, Abhishek Sagar wrote: > On 9/12/07, Denys Vlasenko <[EMAIL PROTECTED]> wrote: > > Patches were run-tested on x86_64, and likely do not work on any other arch > > (need to add KEEP() to arch/*/kernel/vmlinux.lds.S for each arch). > > This is

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

2007-09-13 Thread Abhishek Sagar
On 9/12/07, Denys Vlasenko <[EMAIL PROTECTED]> wrote: > Patches were run-tested on x86_64, and likely do not work on any other arch > (need to add KEEP() to arch/*/kernel/vmlinux.lds.S for each arch). This is good stuff. I had been using a ported variant of this optimization for ARM on quite an ol

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

2007-09-12 Thread Denys Vlasenko
On Tuesday 11 September 2007 22:03, Andi Kleen wrote: > Denys Vlasenko <[EMAIL PROTECTED]> writes: > > > >    text    data     bss     dec     hex filename > > 5159478 1005139  406784 6571401  644589 linux-2.6.23-rc4.org/vmlinux > > 5131822  996090  401439 6529351  63a147 linux-2.6.23-rc4.gc/vmlin

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

2007-09-11 Thread Andi Kleen
Denys Vlasenko <[EMAIL PROTECTED]> writes: > >    text    data     bss     dec     hex filename > 5159478 1005139  406784 6571401  644589 linux-2.6.23-rc4.org/vmlinux > 5131822  996090  401439 6529351  63a147 linux-2.6.23-rc4.gc/vmlinux > > In this particular case, 402 objects were discarded, sav

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

2007-09-11 Thread Denys Vlasenko
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. Theory of operation: Option -ffunction-sections instructs