This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Arm Endian Problems?
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: "Arnold D. Emch (Dev)" <emchad at stamps dot stortek dot com>
- Cc: gcc at gnu dot org, Richard dot Earnshaw at arm dot com
- Date: Sat, 23 Nov 2002 11:07:07 +0000
- Subject: Re: Arm Endian Problems?
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> Hello...
>
> I just completed building the gcc compiler for an arm-elf embedded
> project. But I am unable
> to the link up to complete. The support libs were compiled using little
> endian and our project
> requires big endian. In going through the docs, I have not been able to
> find out how we can
> build the support libs as either biendian or big endian. I suspect this
> might be a simple configure
> exercise, but I have not been able to find anything on this subject. Do
> you know anything about this
> or know of someone who may have an insight on how to get gcc configured
> for an arm-elf using big endian
> libs?
>
> Kind Regards
> Dev Emch
> emchad@stamps.stortek.com
Try editing the configuration file in gcc/config/arm/t-arm-elf
and enable the lines that read
MULTILIB_OPTIONS += mlittle-endian/mbig-endian
MULTILIB_DIRNAMES += le be
MULTILIB_MATCHES += mbig-endian=mbe mlittle-endian=mle
You can then build all your programs with the -mbig-endian switch (don't
forget to also use that while linking).
R.