[Top] [All Lists]

Re: [RFC] Add __initbss section

To: Franck Bui-Huu <>
Subject: Re: [RFC] Add __initbss section
From: "Maciej W. Rozycki" <>
Date: Tue, 16 Oct 2007 11:29:50 +0100 (BST)
Cc: Ralf Baechle <>, Geert Uytterhoeven <>, linux-mips <>
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <> <>
On Mon, 15 Oct 2007, Franck Bui-Huu wrote:

> Well, since .init.bss is declared as follow:
>       .init.bss (NOLOAD) : {
>               ...
>       }
> data should not take any space in the image...

 The above only marks it as unloadable (cf. e.g. debugging information).  
It is still there.

> I meant to be able to put data into .init.bss section from assembly
> code (*.S files) like __INITDATA does for section.

 That does not differ from what has to be done for any other language -- 
ultimately `gas', which is responsible for such arrangements, has to see 
an appropriate ".section" directive.


<Prev in Thread] Current Thread [Next in Thread>