This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
armeb target cross compiler endianness question
- From: "xenoneus ." <xenoneus at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 30 Jul 2008 12:18:25 -0700 (PDT)
- Subject: armeb target cross compiler endianness question
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