Re: [PATCH 2/3] powerpc: allow compilation on cross-endian toolchain

2017-02-02 Thread Naveen N. Rao
On 2016/11/27 01:46PM, Nicholas Piggin wrote: > On Sat, 26 Nov 2016 18:30:15 +1100 > Michael Ellerman wrote: > > > Nicholas Piggin writes: > > > On Thu, 24 Nov 2016 00:02:08 +1100 > > > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > > >

Re: [PATCH 2/3] powerpc: allow compilation on cross-endian toolchain

2016-11-26 Thread Nicholas Piggin
On Sat, 26 Nov 2016 18:30:15 +1100 Michael Ellerman wrote: > Nicholas Piggin writes: > > On Thu, 24 Nov 2016 00:02:08 +1100 > > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > > index 617dece..8828807 100644 > > --- a/arch/powerpc/Makefile >

Re: [PATCH 2/3] powerpc: allow compilation on cross-endian toolchain

2016-11-25 Thread Michael Ellerman
Nicholas Piggin writes: > On Thu, 24 Nov 2016 00:02:08 +1100 > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index 617dece..8828807 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -73,13 +73,18 @@ MULTIPLEWORD := -mmultiple > endif >

Re: [PATCH 2/3] powerpc: allow compilation on cross-endian toolchain

2016-11-25 Thread Nicholas Piggin
On Thu, 24 Nov 2016 20:04:23 +1100 Nicholas Piggin wrote: > On Thu, 24 Nov 2016 00:02:08 +1100 > Nicholas Piggin wrote: > > > GCC can compile with either endian, but the ABI version always > > defaults to the default endian. Alan Modra says: > > Okay I

Re: [PATCH 2/3] powerpc: allow compilation on cross-endian toolchain

2016-11-24 Thread Nicholas Piggin
On Thu, 24 Nov 2016 00:02:08 +1100 Nicholas Piggin wrote: > GCC can compile with either endian, but the ABI version always > defaults to the default endian. Alan Modra says: Okay I was missing mcall-aixdesc, thanks again to Alan for pointing it out. This updated patch seems

[PATCH 2/3] powerpc: allow compilation on cross-endian toolchain

2016-11-23 Thread Nicholas Piggin
GCC can compile with either endian, but the ABI version always defaults to the default endian. Alan Modra says: you need both -mbig and -mabi=elfv1 to make a powerpc64le gcc generate powerpc64 code The opposite is true for powerpc64 when generating -mlittle it requires -mabi=elfv2 to