armeb target cross compiler endianness question
xenoneus .
xenoneus@yahoo.com
Thu Jul 31 04:37:00 GMT 2008
Hi,
I am trying to build a cross compiler for the "armeb-softfloat-linux-uclibceabi" target using gcc-4.2.4 for an embedded linux system based on arm 1176 processor core.
I have a suspicion that the compiler defaults to little endian output. Is there a way to check the default endianness setting used by the compiler? I understand that I could pass "-mbig-endian" flag but this is not an option for me.
I have grepped through the code and googled and I saw references in very old mails about modifying CC1_SPEC in arm.h to "-mbig-endian" but I am afraid if this information is current. I also see endian flag used an ASM_SPEC in elf.h.
What's the correct way to provide the correct default endian value?
Thanks,
Mohan
More information about the Gcc-help
mailing list