Messages in this thread | | | Date | Sun, 18 Oct 2009 13:22:33 -0400 (EDT) | From | Tim Abbott <> | Subject | Re: [PATCH v3 6/7] m68knommu: Move __init_end out of the .init section. |
| |
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
| |