On Thu, 09 Mar 2000, <[EMAIL PROTECTED]> wrote:
>But the vmlinux image was elf-32littlearm format and the evaluation board engineer
>said that I have to build a big-endian image.
>
>So I've fiddled out Makefiles and Rules.make to add -mbig-endian switch to gcc and
>-EB switch to ld.
>
>And finally got error about arch/arm/lib/extractconstants.pl with objdump output of
>big-endian compiled objects.
>
Once upon a time I tried to build big-endian GNU ARM tools for embedded use.
I didn't really need big endian but I just preferred it since all our other
microprocessors are big endian. At the time (and I doubt if this has changed
since), binutils didn't deal with big-endian correctly ARM since the BFD
library assumes a single endianness for all relocations, both data and
instruction. Turns out that for a big endian ARM, you must treat data as
big endian but instructions as little endian. Binutils just plain can't handle
this.
--
Jon Olson, Modular Mining Systems
3289 E. Hemisphere Loop
Tucson, AZ 85706
INTERNET: [EMAIL PROTECTED]
PHONE: (520)746-9127
FAX: (520)889-5790
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++ Please use [EMAIL PROTECTED] for ++
++ kernel-related discussions. ++