This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Assembler messages


On Thu June 10, 2004 08h49, Richard Earnshaw wrote:
> On Thu, 2004-06-10 at 15:42, Nick Clifton wrote:
> > Hi Shaun,
> >
> > > ../../arch-at91/syscall_handler.S: Assembler messages:
> > > ../../arch-at91/syscall_handler.S:25: Error:
> > > internal_relocation (type: OFFSET_IMM) not fixed up
> > >
> > > ... and line 25 says...
> > > 	ldr lr, syscall_lr
> > >
> > > ... which I think means that syscall_lr is out of range. So if
> > > I'm correct, my wish-list item requests that this error message
> > > state why the fix-up failed (presumably because this memory
> > > address is out of range), what the range is, and by what amount
> > > the range was exceeded.
> >
> > Please feel free to submit a patch that does this.
>
> Err, I think in this case it was expecting syscall_lr to be an
> assembly time literal.  If the literal isn't found then you'll get
> the cited message.

I don't think that's the case. I was able to fix my problem by adding 
a step of indirection:

	ldr lr, =syscall_lr
	ldr lr, [lr]

Cheers,
Shaun


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]