Building uclibc for big-endian and little-endian target.

Mike Frysinger vapier at gentoo.org
Wed Oct 16 07:04:32 UTC 2013


On Tuesday 15 October 2013 15:00:40 Khem Raj wrote:
> On Oct 15, 2013, at 10:30 AM, Steve Ellcey wrote:
> > I have a question about endiness and uclibc.  I am trying to build
> > multiple versions of uclibc for MIPS, including big and little endian
> > versions.  What I notice is that in Rules.mak there are lines:
> > 
> > CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN) += -Wl,-EL
> > CPU_LDFLAGS-$(ARCH_BIG_ENDIAN)    += -Wl,-EB
> > 
> > to add -EL or -EB to linker commands (this seems to be generic for all
> > architectures).
> > 
> > What I do not see is any generic (or MIPS specific) code to add -EL or
> > -EB to CPU_CFLAGS (or CPU_FLAGS-y to be exact).  I am wondering if there
> > is a specific reason for this?  Right now the uclibc build seems to
> > assume that the compiler I am using to build uclibc will always generate
> > the correct endiness without any flags.
> 
> That was consensus we had some time ago. Otherwise these flags were getting
> too many and difficult to deal with.

well, i think that was more focused on cpu/arch/tune flags.  we still have 
endian flags in there for various targets.  adding the right logic for mips 
would be OK imo.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20131016/674866ca/attachment.asc>


More information about the uClibc mailing list