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

From: Ralf Baechle
Date: Tue Apr 28 2009 - 04:57:52 EST


On Mon, Apr 27, 2009 at 10:06:26AM -0700, Linus Torvalds wrote:

> On Mon, 27 Apr 2009, Tim Abbott wrote:
> >
> > Does .head.text actually need its own output section here?
>
> Probably not. Does the ARM build system massage the end result some way
> looking for that .text.head section in the end? As you note, nobody else
> cares, and the proper patch may be more along the lines of something
> below.
>
> Of course, most other architectures put the "init" section at the end, and
> leave the HEAD_TEXT in the regular text section, but I suspect the ARM way
> of laying things out (init text first) is probably better, since it allows
> you to free that head code too.

There are a few platforms were due to excess bootloader primitivity (read
the boot format is a simple blob) it is desireable to have the entry point
at the lowest address of the final image - because that is what the firmware
is expecting.

Ralf
--
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/