[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201007260329.09913.vda.linux@googlemail.com>
Date: Mon, 26 Jul 2010 03:29:09 +0200
From: Denys Vlasenko <vda.linux@...glemail.com>
To: Sam Ravnborg <sam@...nborg.org>
Cc: Tim Abbott <tabbott@...lice.com>, Tim Bird <tim.bird@...sony.com>,
James Bottomley <James.Bottomley@...senpartnership.com>,
linux-kernel@...r.kernel.org,
Matt Fleming <matt@...sole-pimps.org>,
linux-arch@...r.kernel.org, Arnd Bergmann <arnd@...db.de>,
Michal Marek <mmarek@...e.cz>,
Parisc List <linux-parisc@...r.kernel.org>
Subject: Re: Testing of function/data-sections on linux-2.6.35-rc4
On Friday 23 July 2010 22:24, Sam Ravnborg wrote:
> > * fix for kernel linker stripts: linux-2.6.35-rc4-fs.fix-kernel-linker-scripts.patch
> > It makes _all_ linker scripts -ffunction/data-sections safe via:
> > - *(.data)
> > + *(.data .data.*)
> >
>
> This patch touches both the regular kernel linker scripts and the
> boot linker scripts.
> I would strongly prefer a split so you touched the boot linker
> scripts in a separate patch.
No problem.
> In addition the patch handles more sections than
> documented: rodata, bss, text.
Yes, that was assumed.
> The patch introduce the following syntax for input sections:
>
> *(.bss .bss.*)
>
> Where the kernel linker script would have one input
> section per line.
> Can we stick to the "layout" used in the kernel linker scripts?
Sure.
> The patch in addition in several places changes linker
> scripts that already uses the two-lines layout to a single line approach.
> These "fixes" should be omitted.
Reverted.
> Why do we need *(.bss .bss.*)?
> Does -fdata-sections introduce special .bss sectiosn too?
Yes, it does.
Please take a look at attached updated patches.
Signed-off-by: Denys Vlasenko <vda.linux@...glemail.com>
--
vda
View attachment "linux-2.6.35-rc4-fs-boot-linker-scripts.v2.patch" of type "text/x-diff" (8120 bytes)
View attachment "linux-2.6.35-rc4-fs-kernel-linker-scripts.v2.patch" of type "text/x-diff" (4013 bytes)
Powered by blists - more mailing lists