lkml.org 
[lkml]   [2009]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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



\
 
 \ /
  Last update: 2009-10-18 19:25    [W:0.106 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site