This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


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

How to set big-endian for ARM target?



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


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