This is the mail archive of the gcc@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]

Re: Arm Endian Problems?


> 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.


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