This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



      


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]