This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: [ECOS] arm-elf-ld problems
- To: Gary Thomas <gthomas@cygnus.co.uk>
- Subject: Re: [ECOS] arm-elf-ld problems
- From: Dan Hovang <dh@ctech.ideon.se>
- Date: Thu, 20 May 1999 18:23:13 +0200
- CC: Ecos Discuss <ecos-discuss@sourceware.cygnus.com>
- Organization: CTechnologies
- References: <XFMail.990520165826.gthomas@cygnus.co.uk>
Gary Thomas wrote:
>
> Since you are using StrongARM (an unsupported ARM architecture at
> this time), what compiler options, etc, are you using? How did you
> configure the tools when you built them?
I configured them as arm-elf. I made the assumption that it would
produce ARMv4 compatible code and I also assumed that by avoiding
hard floats I should be able to run the code on StrongARM. I figured
that the only penalty would be in optimization; as the compiler would
most likely not be able schedule the instructions properly.
Also; in the packages/targets file I added my platform with:
cflags {
ARCHFLAGS "-mcpu=strongarm"
A quick glance at /src/gcc/config/arm.c told me that this perhaps
should work. (gcc supports StrongARM, so the eCos tools should too?)
However; as stated, theese are all assumptions so I do expect a
fair amount of trouble. :-)
I solved the problem with the binary format by compiling to ELF and
using arm-elf-objcopy to produce the binary. I have'nt tried the
image yet; but the disassembly looks ok.
/Dan