Problem in ARM Branch Syntax

Bill Gatliff bgat@billgatliff.com
Tue Jun 10 12:43:00 GMT 2003


Ketan:


Maybe:

   bvc    .+0x0c

?

The '.' is the "current location counter", or at least that's the term 
the linker uses...


b.g.

-- 
Bill Gatliff
Embedded GNU and Linux development, training
bgat@billgatliff.com




Ketan Mukadam wrote:

>
> Hi all,
>
> I have a ADS macro defined in a file something like this:
> ==================================
> MACRO   Q_ADD  $reg1,$reg2,$reg3
>         ADDS    $reg1,  $reg2,  $reg3
>         BVC     {pc} + 0x0C    =======================>> Problemetic Line
>         MVNGT $reg1,    #0x80000000
>         MOVLT    $reg1, #0x80000000
> MEND
> ===================================
>
> When I try to port the code onto gcc, it gives a linking error as 
> "undefined reference to pc"
> I tried many alternatives but was not successful.
>
> Can anyone tell me how this be changed to suit gcc??
>
> TIA
> Regds
> Ketan
>
>
>
> "Destiny is not a matter of chance, it is a matter of choice; it is 
> not a thing to be waited for, it is a thing to be achieved."
>                                                                                                 
> ----William Jennings Bryan
>
> ------
> Want more information?  See the CrossGCC FAQ, 
> http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to 
> crossgcc-unsubscribe@sources.redhat.com
>



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list