
17 Aug
2005
17 Aug
'05
9:07 a.m.
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