[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <FEDC4251-5A6A-4E3C-AE36-8E5B55D9D6CF@gmail.com>
Date: Tue, 13 Oct 2015 15:33:10 +0800
From: yalin wang <yalin.wang2010@...il.com>
To: Sam Ravnborg <sam@...nborg.org>
Cc: Russell King - ARM Linux <linux@....linux.org.uk>,
Arnd Bergmann <arnd@...db.de>,
Ard Biesheuvel <ard.biesheuvel@...aro.org>,
Will Deacon <will.deacon@....com>,
Nicolas Pitre <nico@...aro.org>,
Kees Cook <keescook@...omium.org>,
Catalin Marinas <catalin.marinas@....com>,
Victor Kamensky <victor.kamensky@...aro.org>,
Mark Salter <msalter@...hat.com>, vladimir.murzin@....com,
ggdavisiv@...il.com, paul.gortmaker@...driver.com,
mingo@...nel.org, rusty@...tcorp.com.au, mcgrof@...e.com,
akpm@...ux-foundation.org, kirill.shutemov@...ux.intel.com,
n-horiguchi@...jp.nec.com, aarcange@...hat.com, mhocko@...e.com,
jack@...e.cz, iamjoonsoo.kim@....com, xiexiuqi@...wei.com,
vbabka@...e.cz, Vineet.Gupta1@...opsys.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-arch@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [RFC] arm: add __initbss section attribute
> On Oct 13, 2015, at 04:04, Sam Ravnborg <sam@...nborg.org> 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, stop_align) \
>
> A few comments:
>
> 1) - please align the backslash at the end of the
> line with the backslash above it.
> 2) - you need to fix all the remaining users of BSS_SECTION.
> 3) - do we really need the flexibility to specify an alignment (stop_align)?
> If not - drop the extra argument.
>
> Sam
i change lots of __initdata to __initbss to test it on ARM arch,
Download attachment "initbss_change.diff" of type "application/octet-stream" (101068 bytes)
build result :
yalin@...ntu:~/linux-next$ ll ../kernel_out_arm/arch/arm/boot/*Image*
-rwxrwxr-x 1 yalin yalin 14487552 Oct 13 15:08 ../kernel_out_arm/arch/arm/boot/Image* # apply the patch
-rwxrwxr-x 1 yalin yalin 14512128 Oct 12 11:48 ../kernel_out_arm/arch/arm/boot/Image_old*
-rwxrwxr-x 1 yalin yalin 6479568 Oct 13 15:08 ../kernel_out_arm/arch/arm/boot/zImage* # apply the patch
-rwxrwxr-x 1 yalin yalin 6479664 Oct 12 17:31 ../kernel_out_arm/arch/arm/boot/zImage_old*
Image size shrink about 24576 bytes
zImage seems not change much .
it will be more useful for platform which don’t use compress Image like ARM64 / x86 platform i think.
Thanks
Powered by blists - more mailing lists