This is the mail archive of the binutils@sourceware.org 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: Gnu assembler question for ARM


> > 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


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