Re: [PATCH v3 6/7] m68knommu: Move __init_end out of the .initsection.
From: Tim Abbott
Date: Sun Oct 18 2009 - 13:23:00 EST
On Wed, 14 Oct 2009, Sam Ravnborg wrote:
> Took a look at this trying to understand why this
> caused a non-booting system.
Thanks, I really appreciate your looking at this!
[...]
> I think the better solution is to use the same section name
> several times like this:
>
> .init : {
> . = ALIGN(PAGE_SIZE);
> __init_end = .;
> } > INIT
>
> We should do this both for begin and end.
> Then the linker will not fool us and try to rearrange stuff.
> And we do not end up with zero sized sections.
OK, I have an attempt at implementing this idea. Of course, the final
patch which uses INIT_TEXT_SECTION and INIT_DATA_SECTION has multiple
output sections (.init.data and .init.text), but I think perhaps including
these alignment guards in the adjacent section might work.
-Tim Abbott
--
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/