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

2007-09-11 Thread Sam Ravnborg
> > But then we need to annotate ALL arch linker script before introducing this. > > And that bring me back to that we should put some sanity into these first. > > I was working with x86_64 ld script and am willing to clean it up a bit. > > I can impelment and test DISCARD_UNUSED_SECTIONS for x86

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

2007-09-11 Thread Denys Vlasenko
On Monday 10 September 2007 20:14, Sam Ravnborg wrote: > On Mon, Sep 10, 2007 at 08:02:15PM +0100, Denys Vlasenko wrote: > > On Monday 10 September 2007 13:01, Sam Ravnborg wrote: > > > > > > > > > Doing a normal kernel build will link vmlinux three or four times. > > > > > If we introduce --gc-se

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

2007-09-10 Thread Sam Ravnborg
On Mon, Sep 10, 2007 at 08:02:15PM +0100, Denys Vlasenko wrote: > On Monday 10 September 2007 13:01, Sam Ravnborg 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 wher

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

2007-09-10 Thread Denys Vlasenko
On Monday 10 September 2007 13:01, Sam Ravnborg 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 > > > assumin

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

2007-09-10 Thread Sam Ravnborg
> > > 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

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

2007-09-06 Thread Sam Ravnborg
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

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

2007-09-06 Thread Denys Vlasenko
On Wednesday 05 September 2007 21:46, Sam Ravnborg wrote: > On Wed, Sep 05, 2007 at 07:40:15PM +0100, Denys Vlasenko wrote: > > On Wednesday 05 September 2007 14:55, Denys Vlasenko wrote: > > > Part 3: > > > > > > Makefile: > > > init/Kconfig: > > > add config DISCARD_UNUSED_SECTIONS with approp

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

2007-09-05 Thread Sam Ravnborg
On Wed, Sep 05, 2007 at 07:40:15PM +0100, Denys Vlasenko wrote: > On Wednesday 05 September 2007 14:55, Denys Vlasenko wrote: > > Part 3: > > > > Makefile: > > init/Kconfig: > > add config DISCARD_UNUSED_SECTIONS with appropriate > > big scary warning. It enables gcc and ld options > > for s

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

2007-09-05 Thread Denys Vlasenko
On Wednesday 05 September 2007 14:55, Denys Vlasenko wrote: > Part 3: > > Makefile: > init/Kconfig: > add config DISCARD_UNUSED_SECTIONS with appropriate > big scary warning. It enables gcc and ld options > for section garbage collection. At it typically happens, last-minute "obviously corr

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

2007-09-05 Thread Denys Vlasenko
On Wednesday 05 September 2007 14:49, Denys Vlasenko wrote: > On Wednesday 05 September 2007 14:47, Denys Vlasenko wrote: > > On Wednesday 05 September 2007 14:43, Denys Vlasenko wrote: > > > These patches fix section names and add > > > CONFIG_DISCARD_UNUSED_SECTIONS. It is not enabled > > > uncon