Jump addresses messed up with GNU as



Hello,

I'm trying to assemble the following program (ARM architecture) :

..text
nop
1:
nop
nop
nop
bal 1b

GNU as produces the following code (read back with objdump -d) :
Disassembly of section .text:

00000000 <.text>:
0: e1a00000 nop (mov r0,r0)
4: e1a00000 nop (mov r0,r0)
8: e1a00000 nop (mov r0,r0)
c: e1a00000 nop (mov r0,r0)
10: eaffffff b 14 <.text+0x14>

As you can see, the address for the jump is outside the program :(
I assemble with the following command :
arm-elf-as -mcpu=arm7tdmi -o myprog.o myprog.s

The problem's exactly the same when not using a local label.
Any ideas ?
Thanks,
Sebastien

.



Relevant Pages

  • Re: Explanation of a swindling
    ... but did not assemble with an argument of 5000. ... Everybody knows that making identifiers with _ could ... Then you tested with a nop, and it went up to 2000 (you say it stopped ... labels with such resembling name, is quite impossible to find as well. ...
    (alt.lang.asm)
  • Re: Bible Codes mengisyaratkan sesuatu terjadi tgl 8 Nov 2005 !
    ... loh pan kemaren orang finland dapet kabar dari tuhannya untuk mulai ... berjihad sejak 1 nop 2005? ... Prev by Date: ...
    (soc.culture.indonesia)
  • Re: scheduled shutdown for win xp
    ... nop, this doesn't work, the system is stil standby and when i move the ... mous he is shutdown ... Prev by Date: ...
    (microsoft.public.windowsxp.customize)
  • Re: Swig compile errors
    ... Nop No luck. ... That dint work. ... Prev by Date: ...
    (comp.lang.python)