Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to build Toolchains for ARM Big Endian?

868 views
Skip to first unread message

Ren Hantao

unread,
Nov 25, 2003, 10:22:05 PM11/25/03
to
I've succesfully build toolchains for ARM, the defalut is little endian.

binutils:
#configure --target=arm-elf --prefix=/opt/armtools/
#make all install

#export PATH=/opt/armtools/bin: $PATH

gcc-newlib:
#configure --target=arm-elf --with-gnu-as --with-gnu-ld --enable-threads --w
ith-newlib --enable-languanges=c,c++ --prefix=/opt/armtools/
#make all install

I know I can use '-mbig-endian' to build the cource code for big endian
target. But when do linking, it reported errors that the libraries are all
little endian.

Does anybody know how to build Toolchains for ARM Big Endian?

Thanks

Hans

Christoph Baumann

unread,
Nov 26, 2003, 5:27:01 AM11/26/03
to
Ren Hantao wrote:
> Does anybody know how to build Toolchains for ARM Big Endian?

See http://crossgcc.billgatliff.com/crossgccfaq/t1.html and
http://sources.redhat.com/ml/crossgcc/ . Especially the guys at the
CrossGCC list should be able to answer any question in that area.


Mit freundlichen Gruessen / Best regards
Dipl.-Phys. Christoph Baumann
---
SORCUS Computer GmbH
Im Breitspiel 11 c
D-69126 Heidelberg

Tel.: +49(0)6221/3206-0
Fax: +49(0)6221/3206-66


Grant Edwards

unread,
Nov 26, 2003, 10:09:37 AM11/26/03
to
On 2003-11-26, Ren Hantao <re...@lucent.com> wrote:

> I've succesfully build toolchains for ARM, the defalut is little endian.

Yup. The same toolchain can be used for big-endian as well.
add a -mbig-endian to the command line.

> Does anybody know how to build Toolchains for ARM Big Endian?

In theory, you could mess with the configuration file to make
big-endian the default, but why bother? You'd end up with a
non-standard toolchain and regret it later.

--
Grant Edwards grante Yow! Everybody is going
at somewhere!! It's probably
visi.com a garage sale or a disaster
Movie!!

Dan Kegel

unread,
Dec 6, 2003, 11:38:35 AM12/6/03
to
Grant Edwards wrote:
>>I've succesfully build toolchains for ARM, the defalut is little endian.
>
> Yup. The same toolchain can be used for big-endian as well.
> add a -mbig-endian to the command line.
>
>>Does anybody know how to build Toolchains for ARM Big Endian?
>
> In theory, you could mess with the configuration file to make
> big-endian the default, but why bother? You'd end up with a
> non-standard toolchain and regret it later.

In case he really, really wants to make big endian the
default, this page might help:

http://www.davehylands.com/linux/ARM-bigendian/

- Dan

0 new messages