This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: gcc's error?
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: "twomol" <twomol at bj1860 dot net>
- Cc: ecos-discuss at sources dot redhat dot com <ecos-discuss at sources dot redhat dot com>,gcc at gcc dot gnu dot org <gcc at gcc dot gnu dot org>
- Date: 24 Nov 2004 09:40:35 +0000
- Subject: Re: [ECOS] gcc's error?
- References: <20041124073836.FDYD15477.fep1.bj1860.net@twomol>
"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