Gnu assembler question for ARM
Paul Brook
paul@codesourcery.com
Thu May 3 18:25:00 GMT 2007
> > What did you try? IIRC you want something like "[pc, . - .Label + 8]".
> > cfldrs c1, myvar
> >
> > Should do the trick.
>
> Anyway, when I try to load integers (using the standard ldr) the following
> 2 options are ok:
>
> ldr r0, [pc, #myint - . - 8]
> and
> ldr r0, myint
> mov pc, lr
>
> With the maverickcrunck specific opcodes, only this one works:
>
> cfldrs c0, [pc, #-12]
Sounds like your binutils is broken.
I tested current CVS and it worked (you also need to use mvf0, not c0).
Paul
More information about the Binutils
mailing list