This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos 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: 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



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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