[U-Boot-Users] Re: MIPS LE build problems

Matej Kupljen matej.kupljen at ultra.si
Wed Aug 17 09:07:41 CEST 2005


Hi

> Why do we have to? The only one who needs this type of information is
> the toolchain, and it knows.

I tested this with two toolchains, BE and LE and Wolfgang is right that
the toolchain knows what endianness should be. Well this is partly true,
because this is know to gcc (look at the -dumpspecs) but not to the
linker, because in the linker script for the board
(board/xxx/u-boot.lds) you tell the linker what is the default
endianness (OUTPUT_FORMAT(default, big, little)).

I think we need to tell the linker what endianness it should use if
we are using little endian build, because the default is set to
big. Or we can use two linker scripts.

Did I miss something, or is this correct?

BR,
Matej





More information about the U-Boot mailing list