[ECOS] gcc's error?
Wed Nov 24 09:41:00 GMT 2004
"twomol" <email@example.com> 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
More information about the Ecos-discuss