linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jesper Nilsson <Jesper.Nilsson@axis.com>
To: Tim Abbott <tabbott@ksplice.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Sam Ravnborg <sam@ravnborg.org>,
	Mikael Starvik <mikael.starvik@axis.com>,
	dev-etrax <dev-etrax@axis.com>
Subject: Re: [PATCH] cris: Cleanup linker script using new linker script macros.
Date: Tue, 15 Sep 2009 09:33:13 +0200	[thread overview]
Message-ID: <20090915073313.GO4592@axis.com> (raw)
In-Reply-To: <alpine.DEB.1.10.0909141313310.31119@dr-wily.mit.edu>

On Mon, Sep 14, 2009 at 10:27:18PM +0200, Tim Abbott wrote:
> On Mon, 14 Sep 2009, Jesper Nilsson wrote:
> > On Mon, Sep 07, 2009 at 05:06:33AM +0200, Tim Abbott wrote:
> > >  	. = ALIGN (4);
> > >  	___data_start = . ;
> > >  	__Sdata = . ;
> > > -	.data : {			/* Data */
> > > -		DATA_DATA
> > > -	}
> > > +	RW_DATA_SECTION(0, PAGE_SIZE, PAGE_SIZE)
> > 
> > This causes some problems, and I'm not ldscript guru enough to immediately
> > grasp the problem. What I get is this:
> > 
> > ...
> >   LD      vmlinux
> > arch/cris/kernel/vmlinux.lds:326 cannot move location counter backwards (from c017e000 to 00000000)
> > make[1]: *** [vmlinux] Error 1
> > make: *** [sub-make] Error 2
> 
> Hmm.  I spent a bit looking at it, and I don't have a guess for what the 
> problem is there.
> 
> > I've dropped that part of the patch, and I'll try to
> > boot test the rest of the patch this week.
> 
> Yeah, it's probably fine to just drop it for now, since it has fairly 
> small cleanup impact on cris.
> 
> However, just dropping that hunk is not going to work -- you'll need to 
> re-add the .data.init_task hunk below (which had been part of 
> RW_DATA_SECTION).

Yes, sorry, I did that, but didn't mention it.
Or rather, I added: INIT_TASK_DATA_SECTION(PAGE_SIZE) instead.

> 	-Tim Abbott
> 
> > >  	__edata = . ;			/* End of data section. */
> > >  	_edata = . ;
> > >  
> > > -	. = ALIGN(PAGE_SIZE);	/* init_task and stack, must be aligned. */
> > > -	.data.init_task : { *(.data.init_task) }
> > > -
> > >  	. = ALIGN(PAGE_SIZE);		/* Init code and data. */
> > >  	__init_begin = .;

/^JN - Jesper Nilsson
-- 
               Jesper Nilsson -- jesper.nilsson@axis.com

      reply	other threads:[~2009-09-15  7:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-07  3:06 [PATCH] cris: Cleanup linker script using new linker script macros Tim Abbott
2009-09-14  8:59 ` Jesper Nilsson
2009-09-14 20:27   ` Tim Abbott
2009-09-15  7:33     ` Jesper Nilsson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090915073313.GO4592@axis.com \
    --to=jesper.nilsson@axis.com \
    --cc=dev-etrax@axis.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikael.starvik@axis.com \
    --cc=sam@ravnborg.org \
    --cc=tabbott@ksplice.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).