This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc-3.2.2 for armv5b - big endian not the default?
- From: Josh Fryman <fryman at cc dot gatech dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 6 Mar 2003 16:31:32 -0500
- Subject: gcc-3.2.2 for armv5b - big endian not the default?
hi,
i'm building an armv5b cross toolchain, with the flags below, and
have found something odd. when i specify that i want the result
to be armv5b, hence big-endian, it seems that gcc is trying to link
as little-endian. it _builds_ correctly, but unless i specify the
'-mbig-endian' flag to everything... things just won't link.
did i build it incorrectly or something? or is binutils not built
correctly? all the flags for building the toolchains are below, as
well as the broken output during a compile.
-josh
----------
../binutils-2.13.90.0.18-src/configure --target=armv5b-linux --program-prefix=xscalebe- --prefix=/usr/local/xscalebe/ --with-cpu=xscale --nfp
../gcc-3.2.2-src/configure --target=armv5b-linux --prefix=/usr/local/xscalebe/ i686-pc-linux-gnu --with-headers=/usr/local/xscale/src/linux-adi-brh//include --disable-shared --disable-threads --enable-languages=c --nfp --with-cpu=xscale --without-fp --with-softfloat-support=internal --program-prefix=xscalebe-
CC=xscalebe-gcc ../glibc-2.3.2-src/configure --host=armv5b-linux --build=i686-pc-linux-gnu --with-headers=/usr/local/xscale/src/linux-adi-brh//include --enable-add-ons --enable-shared --prefix=/usr/local/xscalebe/ --with-cpu=xscale --without-fp --enable-kernel=2.4.19 --program-prefix=xscalebe-
[... glibc-building ]
xscalebe-gcc -nostdlib -nostartfiles -r -o /usr/local/xscale/toolchain/build/glibc-2.3.2-build/csu/crt1.o /usr/local/xscale/toolchain/build/glibc-2.3.2-build/csu/start.o /usr/local/xscale/toolchain/build/glibc-2.3.2-build/csu/abi-note.o /usr/local/xscale/toolchain/build/glibc-2.3.2-build/csu/init.o
/usr/local/xscalebe/bin/../lib/gcc-lib/armv5b-linux/3.2.2/../../../../armv5b-linux/bin/ld: /usr/local/xscale/toolchain/build/glibc-2.3.2-build/csu/start.o: compiled for a big endian system and target is little endian
File in wrong format: failed to merge target specific data of file /usr/local/xscale/toolchain/build/glibc-2.3.2-build/csu/start.o
/usr/local/xscalebe/bin/../lib/gcc-lib/armv5b-linux/3.2.2/../../../../armv5b-linux/bin/ld: /usr/local/xscale/toolchain/build/glibc-2.3.2-build/csu/abi-note.o: compiled for a big endian system and target is little endian
File in wrong format: failed to merge target specific data of file /usr/local/xscale/toolchain/build/glibc-2.3.2-build/csu/abi-note.o
/usr/local/xscalebe/bin/../lib/gcc-lib/armv5b-linux/3.2.2/../../../../armv5b-linux/bin/ld: /usr/local/xscale/toolchain/build/glibc-2.3.2-build/csu/init.o: compiled for a big endian system and target is little endian
File in wrong format: failed to merge target specific data of file /usr/local/xscale/toolchain/build/glibc-2.3.2-build/csu/init.o
collect2: ld returned 1 exit status
make[2]: *** [/usr/local/xscale/toolchain/build/glibc-2.3.2-build/csu/crt1.o] Error 1
make[2]: Leaving directory `/usr/local/xscale/toolchain/build/glibc-2.3.2-src/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/usr/local/xscale/toolchain/build/glibc-2.3.2-src'
make: *** [all] Error 2
cd /usr/local/xscale/toolchain/build/glibc-2.3.2-build/csu
file *.o
abi-note.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped
check_fds.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped
dso_handle.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped
elf-init.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped
errno-loc.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped
errno.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped
gmon-start.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped
init-first.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped
init.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped
libc-start.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped
libc-tls.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped
start.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped
sysdep.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped
version.o: ELF 32-bit MSB relocatable, ARM, version 1 (ARM), not stripped