Building ARM in big-endian mode

Charles Steaderman charlies at
Mon Feb 24 20:34:37 UTC 2003

I would like to rebuild RTEMS and my application for ARM in big-endian mode.
Currently, I have RPM based tools installed under Linux (gcc-3.2.1/newlib-1.10).
When I modify my bsp cfg file with -mbig-endian and rebuild RTEMS, I get the
following error:

arm-rtems-gcc --pipe -B../../../../lib/ -B../../../../pwrlink/lib/ -specs
bsp_specs -qrtems     -ansi -fasm      -O3 -mcpu=arm7tdmi
-mstructure-size-boundary=8 -mbig-endian  -o o-optimize/no-dpmem.o -c
test -d o-optimize || mkdir o-optimize
arm-rtems-gcc --pipe -B../../../../lib/ -B../../../../pwrlink/lib/ -specs
bsp_specs -qrtems  -O3 -mcpu=arm7tdmi -mstructure-size-boundary=8 -mbig-endian 
   -L ../../../../pwrlink/lib -o o-optimize/no-dpmem.rel -qnolinkcmds -nostdlib
-Wl,-r  o-optimize/no-dpmem.o
o-optimize/no-dpmem.o: compiled for a big endian system and target is little endian
File in wrong format: failed to merge target specific data of file
collect2: ld returned 1 exit status
gmake[4]: *** [o-optimize/no-dpmem.rel] Error 1

I assume that this means I need to rebuild newlib? At what point in the
configure/make process do I specify that I want big-endian and are there other
defines (-DBIG_ENDIAN???) that I need to specify?

- Charlie

Charlie Steaderman
charlies at
VP Engineering
Poliac Research Corporation
Phone: 952.707.6245
Cel: 612.242.6364

More information about the users mailing list