This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Building a big endian xscale toolchain with softfloat support.


Hi,

i'm trying to build a toolchain for an IXP2800(xscale) processor.
The toolchain needs softfloat support and i should produce big endian
binaries by default.

I'm using crosstool-0.28-rc23.

I've uncommented the following line in demo-arm-softfloat.sh
eval `cat arm-softfloat.dat gcc-3.3.3-glibc-2.3.2.dat` sh all.sh --notest

I've modified arm-softfloat.dat the following way:
KERNELCONFIG=`pwd`/arm.config
TARGET=armb-softfloat-linux-gnu
TARGET_CFLAGS="-O"
GCC_EXTRA_CONFIG="--with-float=soft --with-cpu=xscale"
GLIBC_EXTRA_CONFIG="--without-fp"

To make the toolchain big endian by default i put the following patch
into $(crosstoolpath)/patches/gcc-3.3.3/:
--- gcc-3.3.2/gcc/config/arm/linux-elf.h	2004-02-11
10:00:46.000000000 -0800
+++ gcc-3.3.2-org/gcc/config/arm/linux-elf.h	2004-02-11
09:59:57.000000000 -0800
@@ -34,7 +34,7 @@
#undef  TARGET_DEFAULT
-#define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_MMU_TRAPS)
+#define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_MMU_TRAPS |
ARM_FLAG_BIG_END)
  
-#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p"
+#define SUBTARGET_EXTRA_LINK_SPEC " -m armelfb_linux -p"
   
#undef  MULTILIB_DEFAULTS
#define MULTILIB_DEFAULTS \

Source: http://www.davehylands.com/linux/ARM-bigendian/\
gcc-uclibc-3.3-300-bigend.patch

The creation of the toolchains fails while running configure for the
binutils:

configure: error: Unrecognized target system type; please check
config.sub.
make: *** [configure-bfd] error 1

I had a look at config.sub

case $basic_machine in
   [...]
   | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr
   [...]

As for as i could see the target should by known.

Can anyone give my a hint?

TIA Frank

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]