Skip to content

Commit b2ca8c8

Browse files
apoppleozbenh
authored andcommitted
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 <alistair@popple.id.au> Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent d606b92 commit b2ca8c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ endif
111111
endif
112112

113113
CFLAGS-$(CONFIG_PPC64) := -mtraceback=no -mcall-aixdesc
114+
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1)
114115
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,-mminimal-toc)
115116
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions)
116117
CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD)

0 commit comments

Comments
 (0)