Subject: Re: Adding Multiboot support (or not)
To: None <tech-kern@netbsd.org, port-i386@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-kern
Date: 02/14/2006 18:54:42
On Tue, Feb 14, 2006 at 15:48:53 +0000, Nick Hudson wrote:

> That's not my understanding of Pavel's roblem...
> 
> On Saturday 11 February 2006 21:30, Pavel Cahyna wrote:
> > On Sat, Feb 11, 2006 at 05:12:27PM +0300, Valeriy E. Ushakov wrote:
> [...]
> > > My point was that linker will merge link_set_* sections with the .text
> > > and .rodata* sections (see the quotes from the ld.info the PR).
> >
> > In my case it won't, unless I add an explicit statement for .rodata:
> >
> >    .rodata    :
> >    AT (LOADADDR(.text) + (ADDR(.rodata) - ADDR(.text)))
> >    {
> >      *(.rodata)
> >    }
> 
> Are we mandating .rodata?

He said he needs to add .rodata to the the output .text section, so my
guess was that when .rodata is not mentioned there, the "order of
sections in the input" (that i've mentioned) comes into the play.

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen