This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ARM Thumb - not working under Linux either
- To: "Lewin A.R.W. Edwards" <larwe at larwe dot com>
- Subject: Re: [ECOS] ARM Thumb - not working under Linux either
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Fri, 09 Feb 2001 17:46:37 +0000
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <4.3.2.7.2.20010208135343.00aa9580@larwe.com>
"Lewin A.R.W. Edwards" wrote:
>
> Today I installed a Red Hat 6.1 system just to see if I could get Thumb
> compiler support. I successfully built binutils 2.10 and gdb 5.0 and gcc
> (CVS snapshot from last week), all configured for arm-elf.
>
> The problem is that now when I try to build eCos (1.3.1) I get the
> following error:
>
> arm-elf-gcc -c -I/ARMDigi/ecos/install/include
> -I/opt/ecos/ecos-1.3.1/packages/kernel/v1_3_1
> -I/opt/ecos/ecos-1.3.1/packages/kernel/v1_3_1/src
> -I/opt/ecos/ecos-1.3.1/packages/kernel/v1_3_1/tests -I.
> -I/opt/ecos/ecos-1.3.1/packages/kernel/v1_3_1/src/debug/ -mcpu=arm7tdmi
> -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef
> -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti
> -fno-exceptions -fvtable-gc -finit-priority -mthumb
> -Wp,-MD,src/debug/dbg_gdb.tmp -o src/debug/kernel_dbg_gdb.o
> /opt/ecos/ecos-1.3.1/packages/kernel/v1_3_1/src/debug/dbg_gdb.cxx
> /tmp/ccSGafJS.s: Assembler messages:
> /tmp/ccSGafJS.s:544: Error: byte or halfword not valid for base register
> make[1]: *** [src/debug/dbg_gdb.o.d] Error 1
> make[1]: Leaving directory '/ARMDigi/ecos/kernel/v1_3_1'
> make: *** [build] Error 2
>
> This is weird. Any suggestions? Can't be my OS this time. I am guessing
> that the arm-elf binutils can't work with thumb instructions, but I can't
> be sure of course.
It's a bug in gcc's reload. I've talked with people on the binutils list
about it - they need a _small_ testcase exhibiting the problem, but I
haven't time to do it (nor will I have time next week).
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine