This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
2.0b1/eCosCentric ARM tools little-endian only?
- From: Grant Edwards <grante at visi dot com>
- To: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 1 May 2003 10:54:42 -0500
- Subject: [ECOS] 2.0b1/eCosCentric ARM tools little-endian only?
I downloaded and installed eCos 2.0b1 for arm-elf using the
download/install tool from the web page. I've built eCos libs
for my target (which is big-endian). IOW, the following works
fine:
$ ecosconfig new <target>
$ ecosconfig tree
$ make
However, when I try to build tests the link fails because the
toolchain from eCosCentric only supports little-endian (AFAICT):
$ make tests
[...]
make -r -C hal/common/v2_0b1 tests
make[1]: Entering directory `/home/grante/ecos/hal/common/v2_0b1'
arm-elf-gcc -mcpu=arm7tdmi -mbig-endian -g -nostdlib -Wl,--gc-sections -Wl,-static -L/home/grante/ecos/install/lib -Ttarget.ld -o /home/grante/ecos/install/tests/hal/common/v2_0b1/tests/context tests/context.o
/opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld: /opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/libgcc.a(_udivsi3.o): compiled for a little endian system and target is big endian
File in wrong format: failed to merge target specific data of file /opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/libgcc.a(_udivsi3.o)
Was this a conscious decision?
Has anybody been able to build an app for a big-endian ARM
platform using this toolchain?
Are there any other big-endian ARM targets I can try building?
The compiler version is 3.2.1:
$ arm-elf-gcc --version
arm-elf-gcc (GCC) 3.2.1 (eCosCentric)
Why does gcc pick the wrong libgcc.a even though it was told
-mbig-endian?
--
Grant Edwards
grante@visi.com
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss