Problem in ARM Branch Syntax
Vincent Rubiolo
vincent.rubiolo@st.com
Tue Jun 10 12:58:00 GMT 2003
Hi Ketan,
Give ld manual a check, it'll give you a good amount of information.
The precise reference for this instruction is p.20 under section "The program
counter"
Vincent
kmukadam@neomagic.com wrote:
>
> Thanks Bill...... It worked......
>
> Where is all this documented??
>
> Ketan
>
> At 06:12 PM 6/10/2003 Tuesday, Bill Gatliff wrote:
>
>> 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
>>
>> <!DSPAM:3ee5d2c5236412010075190>
>
>
> "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