This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Gnu assembler question for ARM
- From: Paul Brook <paul at codesourcery dot com>
- To: Ciaccia <ciacciax at yahoo dot com>
- Cc: drow at false dot org, binutils at sourceware dot org
- Date: Thu, 3 May 2007 19:25:04 +0100
- Subject: Re: Gnu assembler question for ARM
- References: <390402.27772.qm@web31012.mail.mud.yahoo.com>
> > 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