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

Michael Ellerman mpe at ellerman.id.au
Sat Nov 26 18:30:15 AEDT 2016


Nicholas Piggin <npiggin at gmail.com> 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
>  
>  cflags-$(CONFIG_CPU_BIG_ENDIAN)		+= $(call cc-option,-mbig-endian)
> +cflags-$(CONFIG_CPU_BIG_ENDIAN)		+= $(call cc-option,-mabi=elfv1)
> +cflags-$(CONFIG_CPU_BIG_ENDIAN)		+= $(call cc-option,-mcall-aixdesc)

This blew up the world:

  http://kisskb.ellerman.id.au/kisskb/head/1ba4cb3d67e181bdc9a911d7be81f64e3d7597d2/

  Successful:	24% 63/258

I suspect you need to make -mcall-aixdesc 64-bit only.

cheers


More information about the Linuxppc-dev mailing list