How to build Toolchains for ARM Big Endian?

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

Reply to
Ren Hantao
Loading thread data ...

See

formatting link
and
formatting link
. 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
 Click to see the full signature
Reply to
Christoph Baumann

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

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
 Click to see the full signature
Reply to
Grant Edwards

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

formatting link

- Dan

Reply to
Dan Kegel

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.