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: building SH3 toolchain: big-endian vs little-endian


On Wed, 1 Dec 2004, Daniel Kegel wrote:

> Robert P. J. Day wrote:
> >   i just rebuilt my SH3 toolchain but accidentally had, in my sh3.dat
> > file, the line:
> >
> >   TARGET_CFLAGS="-O -ml -m3"
> >
> > which i'm assuming dictates that i'll be building a toolchain that
> > automatically compiles and links for SH3, little-endian (so that those
> > options are now built right in to the compiler, yes?)
> >
> >   what i really wanted was big-endian instead.  can i just run the
> > cross-compiler and add the "-mb" option to get big-endian instead?  or
> > do i have to rebuild the toolchain?
>
> You need to rebuild, since there are .o's and .a's and .so's that
> were built the old way (glibc, for instance).

duh ... of course.  <slaps forehead>.  thanks.

rday

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