I think what you need to do is tell ld what the desired target is. something
like :

arm-uclinux-ld --target elf32-bigarm ...

of course you could probably save yourself some heartache by rebuilding the
tools to default to big-endian. You want to edit the config.bfd file in the
bfd directory of the binutils source.

there is a section for the "arm-*-elf" target. what you want to do is make
the default bfd_elf32_bigarm_vec and add little to the optional targets.

Good luck with it!

Joe deBlaquiere
WireSpeed Communications http://www.WireSpeed.com
307 Wynn Drive
Huntsville, AL 35805
voice : 256-704-9257
fax   : 256-837-3839

> -----Original Message-----
> From: Xavier DEBREUIL [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 16, 2000 12:49 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [UCLINUX] building big endian code with arm-uclinux-gcc
> 
> 
> Hello,
> 
> As the KS17C4000 is a big-endian controller, I am trying to 
> build a small
> program in big-endian using arm-uclinux-gcc and 
> arm-uclinux-ld from Vadim
> Lebedev (aplio).
> 
> I get the following error message from the linker :
> 
> arm-uclinux-gcc -mbig-endian -Wall -Wstrict-prototypes -O2 
> -fomit-frame-pointer
> -fno-strength-reduce -c -o essai.o essai.c
> arm-uclinux-ld -Ttext 0x1200000 essai.o -o essai
> arm-uclinux-ld: essai.o: compiled for a big endian system and 
> target is little
> endian
> File in wrong format: failed to merge target specific data of 
> file essai.o
> make: *** [essai] Error 1
> 
> Does anyone know why the linker is complaining ?
> Do I need to rebuild the toolchain with specific options so 
> that I can build big
> endian code ?
> 
> xde
> 

unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++        Please use [EMAIL PROTECTED] for           ++
++                        kernel-related discussions.                      ++

Reply via email to