From: Alistair Popple Date: Wed, 20 Nov 2013 11:15:04 +0000 (+1100) Subject: powerpc: Don't use ELFv2 ABI to build the kernel X-Git-Tag: v3.13-rc1~20^2~3 X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=b2ca8c895e711b10d6f28b26248358bfa2f354ad;p=~andy%2Flinux powerpc: Don't use ELFv2 ABI to build the kernel The kernel doesn't build correctly using the ELFv2 ABI. This patch ensures that the ELFv1 ABI is used when building a kernel with an ELFv2 enabled compiler. Signed-off-by: Alistair Popple Signed-off-by: Anton Blanchard Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 607acf54a42..8a2463670a5 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -111,6 +111,7 @@ endif endif CFLAGS-$(CONFIG_PPC64) := -mtraceback=no -mcall-aixdesc +CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1) CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,-mminimal-toc) CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions) CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD)