This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: help: big endian arm-elf toolchain


> Anyone knows how to build a big endian arm-elf
> cross toolchain? I am using 
> newlib-1.10.0
> binutils-2.11.2,
> gcc-2.95.3 
> insight-5.2.1. 

We've got a big-endian-defaulting toolchain for arm
here, but we used binutils-2.10.something and gcc
2.95.2.  So I'm not sure our patches will go in
cleanly to the tool versions you're using.  But I'll
send them along anyway; at least they'll be a decent
starting point.

Failing that, you could always just invoke little-
endian tools with -mbig-endian to gcc and -EB to gas
and gld.  That should work also.

> I've heard newlib has to be recompiled and gdb has to
> be adapted also.

No experience with newlib, but all a recent gdb should
need is "set endian big".  You could put that in the
project's .gdbinit once, and forget about it.  And I
think (not entirely sure) that once gdb is taken care
of, insight should be fine as well without any
additional effort.

Good luck.

-------------------------------------------
Carl Miller               Firmware Engineer
                              Gordian, Inc.
                     http://www.gordian.com

Attachment: binutils-2.10-arm-endianspec.patch
Description: Text document

Attachment: gcc-2.95.2-arm-endianspec.patch
Description: Text document

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

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