Re: [PATCH 05/15] arm: convert to use __HEAD and HEAD_TEXT macros.

From: Russell King
Date: Mon Apr 27 2009 - 13:03:28 EST


On Mon, Apr 27, 2009 at 12:46:21PM -0400, Tim Abbott wrote:
> On Sun, 26 Apr 2009, Sam Ravnborg wrote:
>
> > > - .text.head : {
> > > + HEAD_TEXT_SECTION : {
> >
> > Spell it out direct rather than hiding the .head.text
> > behind a macro name here.
>
> Does .head.text actually need its own output section here? I notice that
> only the linker scripts for arm, x86, and ia64 have an output section for
> .head.text; the rest just place it at the start of the .text or .init.text
> output section. It would be great if we could eliminate these extra
> references to .head.text by doing the same thing here.

It could be merged with the .init section. IOW, it becomes:

.init : { /* Init code and data */
_stext = .;
_sinittext = .;
*(.text.head)
INIT_TEXT
_einittext = .;
__proc_info_begin = .;
*(.proc.info.init)
__proc_info_end = .;
...

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/