bad branches from assembler, gcc3.4 arm

corey taylor corey.taylor@gmail.com
Sun Feb 13 19:30:00 GMT 2005


Scottie,

  Does the program assembled this way run at all?  Your addresses do
seem off by an offset in the encoding.

  Are the values for the instruction encoding the same in the
disassembly as they are in the binary?

corey


On Fri, 11 Feb 2005 15:35:59 -0600 (CST), Scottie Shore
<umshore4@cc.umanitoba.ca> wrote:
> Hello,
> 
> I've written some very simple assembler code (included as test.S) and
> compiled it with "arm-linux-gcc -c test.S". The disassembled code
> (included as output.txt) shows that the branches are not pointed to the
> right address.
> 
> Any idea what would cause this? Something missing in the source file, or a
> compile option, or a compiler bug?
> 
> Please CC responses to me, as I'm not subscribed to the list.
> 
> Scottie Shore <umshore4@cc.umanitoba.ca>
>  - In general, if you notice double vision, you've gone too far.
> 
>



More information about the Gcc-help mailing list