This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ECOS] gcc's error?


"twomol" <twomol@bj1860.net> writes:

> 
> There are some errors in the image's code,for example  at 1820058: ldr lr,[pc, #1136] ; 18204d0 < _eCos_id+0x20> 
> Acording the source ,it should be: ldr lr,[pc, #64] ;18200a0
> 
> What's wrong ??Did I miss something?My gcc's version is 3.3.1
> Thanks very much!

LDR loads the contents of a given location, not its address, into the
destination register. In this case the assembler has allocated a
location at 0x18204d0 which contains the address of label 33. 


-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]