Re: [RFC] arm: add __initbss section attribute

2015-10-13 Thread Arnd Bergmann
On Tuesday 13 October 2015 17:51:32 yalin wang wrote: > > 32 __earlycon_table_sentinel > > 200 __earlycon_of_table_sentinel > > 6 __irf_end > > > > > > 26398 total > i am curious about your scripts , > could you show me ? I was using some ad-hoc command line tricks, including objcopy -j

Re: [RFC] arm: add __initbss section attribute

2015-10-13 Thread yalin wang
> On Oct 13, 2015, at 17:40, Arnd Bergmann wrote: > > On Tuesday 13 October 2015 15:33:10 yalin wang wrote: >> >>> On Oct 13, 2015, at 04:04, Sam Ravnborg wrote: >>> --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h -#define

Re: [RFC] arm: add __initbss section attribute

2015-10-13 Thread Arnd Bergmann
On Tuesday 13 October 2015 15:33:10 yalin wang wrote: > > > On Oct 13, 2015, at 04:04, Sam Ravnborg wrote: > > > >> --- a/include/asm-generic/vmlinux.lds.h > >> +++ b/include/asm-generic/vmlinux.lds.h > >> > >> -#define BSS_SECTION(sbss_align, bss_align, stop_align) > >> \

Re: [RFC] arm: add __initbss section attribute

2015-10-13 Thread yalin wang
> On Oct 13, 2015, at 04:04, Sam Ravnborg wrote: > >> --- a/include/asm-generic/vmlinux.lds.h >> +++ b/include/asm-generic/vmlinux.lds.h >> >> -#define BSS_SECTION(sbss_align, bss_align, stop_align) >> \ >> +#define BSS_SECTION(sbss_align, bss_align, initbss_align,

Re: [RFC] arm: add __initbss section attribute

2015-10-13 Thread yalin wang
> On Oct 13, 2015, at 04:04, Sam Ravnborg wrote: > >> --- a/include/asm-generic/vmlinux.lds.h >> +++ b/include/asm-generic/vmlinux.lds.h >> >> -#define BSS_SECTION(sbss_align, bss_align, stop_align) >> \ >> +#define BSS_SECTION(sbss_align, bss_align,

Re: [RFC] arm: add __initbss section attribute

2015-10-13 Thread yalin wang
> On Oct 13, 2015, at 17:40, Arnd Bergmann wrote: > > On Tuesday 13 October 2015 15:33:10 yalin wang wrote: >> >>> On Oct 13, 2015, at 04:04, Sam Ravnborg wrote: >>> --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h

Re: [RFC] arm: add __initbss section attribute

2015-10-13 Thread Arnd Bergmann
On Tuesday 13 October 2015 15:33:10 yalin wang wrote: > > > On Oct 13, 2015, at 04:04, Sam Ravnborg wrote: > > > >> --- a/include/asm-generic/vmlinux.lds.h > >> +++ b/include/asm-generic/vmlinux.lds.h > >> > >> -#define BSS_SECTION(sbss_align, bss_align, stop_align)

Re: [RFC] arm: add __initbss section attribute

2015-10-13 Thread Arnd Bergmann
On Tuesday 13 October 2015 17:51:32 yalin wang wrote: > > 32 __earlycon_table_sentinel > > 200 __earlycon_of_table_sentinel > > 6 __irf_end > > > > > > 26398 total > i am curious about your scripts , > could you show me ? I was using some ad-hoc command line tricks, including objcopy -j

Re: [RFC] arm: add __initbss section attribute

2015-10-12 Thread Sam Ravnborg
> --- a/include/asm-generic/vmlinux.lds.h > +++ b/include/asm-generic/vmlinux.lds.h > > -#define BSS_SECTION(sbss_align, bss_align, stop_align) > \ > +#define BSS_SECTION(sbss_align, bss_align, initbss_align, stop_align) > \ A few comments: 1) -

Re: [RFC] arm: add __initbss section attribute

2015-10-12 Thread Arnd Bergmann
On Monday 12 October 2015 11:59:16 yalin wang wrote: > This attribute can make init data to be into .initbss section, > this will make the data to be NO_BITS in vmlinux, can shrink the > Image file size, and speed up the boot up time. > > Signed-off-by: yalin wang Do you have an estimate of how

Re: [RFC] arm: add __initbss section attribute

2015-10-12 Thread yalin wang
> On Oct 12, 2015, at 16:22, Ard Biesheuvel wrote: > > On 12 October 2015 at 05:59, yalin wang wrote: >> This attribute can make init data to be into .initbss section, >> this will make the data to be NO_BITS in vmlinux, can shrink the >> Image file size, and speed up the boot up time. >> >>

Re: [RFC] arm: add __initbss section attribute

2015-10-12 Thread Ard Biesheuvel
On 12 October 2015 at 05:59, yalin wang wrote: > This attribute can make init data to be into .initbss section, > this will make the data to be NO_BITS in vmlinux, can shrink the > Image file size, and speed up the boot up time. > > Signed-off-by: yalin wang > --- >

Re: [RFC] arm: add __initbss section attribute

2015-10-12 Thread Ard Biesheuvel
On 12 October 2015 at 05:59, yalin wang wrote: > This attribute can make init data to be into .initbss section, > this will make the data to be NO_BITS in vmlinux, can shrink the > Image file size, and speed up the boot up time. > > Signed-off-by: yalin wang

Re: [RFC] arm: add __initbss section attribute

2015-10-12 Thread yalin wang
> On Oct 12, 2015, at 16:22, Ard Biesheuvel wrote: > > On 12 October 2015 at 05:59, yalin wang wrote: >> This attribute can make init data to be into .initbss section, >> this will make the data to be NO_BITS in vmlinux, can shrink the >>

Re: [RFC] arm: add __initbss section attribute

2015-10-12 Thread Arnd Bergmann
On Monday 12 October 2015 11:59:16 yalin wang wrote: > This attribute can make init data to be into .initbss section, > this will make the data to be NO_BITS in vmlinux, can shrink the > Image file size, and speed up the boot up time. > > Signed-off-by: yalin wang Do

Re: [RFC] arm: add __initbss section attribute

2015-10-12 Thread Sam Ravnborg
> --- a/include/asm-generic/vmlinux.lds.h > +++ b/include/asm-generic/vmlinux.lds.h > > -#define BSS_SECTION(sbss_align, bss_align, stop_align) > \ > +#define BSS_SECTION(sbss_align, bss_align, initbss_align, stop_align) > \ A few comments: 1) -

[RFC] arm: add __initbss section attribute

2015-10-11 Thread yalin wang
This attribute can make init data to be into .initbss section, this will make the data to be NO_BITS in vmlinux, can shrink the Image file size, and speed up the boot up time. Signed-off-by: yalin wang --- arch/arm/kernel/vmlinux.lds.S | 2 +- arch/arm/mm/init.c| 1 +

[RFC] arm: add __initbss section attribute

2015-10-11 Thread yalin wang
This attribute can make init data to be into .initbss section, this will make the data to be NO_BITS in vmlinux, can shrink the Image file size, and speed up the boot up time. Signed-off-by: yalin wang --- arch/arm/kernel/vmlinux.lds.S | 2 +- arch/arm/mm/init.c