This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
How to set big-endian for ARM target?
- To: ecos <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] How to set big-endian for ARM target?
- From: Grant Edwards <grante at visi dot com>
- Date: Thu, 28 Oct 1999 16:46:07 -0500
I've got big-endian hardware with a little-endian eCOS, and it doesn't
work too well. :)
I've found that adding -mbig-endian to ARCHFLAGS in pkgconf/makevars
takes care of the compiling/assembling, but ld is unhappy because it
thinks the target is little-endian and it's being given big-endian
files:
arm-elf-ld --whole-archive /home/grante/ecos/ecos-1.2.1/packages/ecos-arm7/install/lib/libextras.a -r -o /home/grante/ecos/ecos-1.2.1/packages/ecos-arm7/install/lib/extras.o
arm-elf-ld: hal_dummy.o: compiled for a big endian system and target is little endian
File in wrong format: failed to merge target specific data of file /home/grante/ecos/ecos-1.2.1/packages/ecos-arm7/install/lib/libextras.a(hal_dummy.o)
[...]
I've added -EB to LDARCHFLAGS in makevars, but that doesn't seem to be
used in the build step above. Was there a configure script option I
missed that specifies the target endianness?
--
Grant Edwards
grante@visi.com