
Hi Rodolfo,
I don't think I'm breaking big endian support with my patch since if you have the ld command:
OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradlittlemips")
you say to the linker that your default endian is "big", please see:
info -f /usr/local/mipsel/info/ld.info -n "Format Commands"
So if you do not specify "-EB" nor "-EL" the linker will use default (big endian in the above example).
Your patch removes ENDIANNESS from MIPSFLAGS. MIPSFLAGS affects more than just the linker. Your patch removes the -EB flag being sent to all tools that have MIPSFLAGS, including the compiler. Your patch also changes the use of MIPSFLAGS itself, so this may be hard for you to see.
Look at the file after you have applied your patch, and you will see that there is now absolutely no way that PLATFORM_CPPFLAGS would *ever* have "-EB" appended to it. That is what you have removed.
Chuck Meade The PTR Group