Skip to content

Commit 58aedcc

Browse files
powerpc: Don't build assembly files with ABIv2
We avoid ABIv2 when building c files since commit b2ca8c8 (powerpc: Don't use ELFv2 ABI to build the kernel). Do the same for assembly files. Signed-off-by: Anton Blanchard <anton@samba.org>
1 parent a798c10 commit 58aedcc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/powerpc/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ endif
115115

116116
CFLAGS-$(CONFIG_PPC64) := -mtraceback=no -mcall-aixdesc
117117
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1)
118+
AFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1)
118119
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,-mminimal-toc)
119120
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions)
120121
CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD)
@@ -151,7 +152,7 @@ endif
151152
CFLAGS-$(CONFIG_TUNE_CELL) += $(call cc-option,-mtune=cell)
152153

153154
KBUILD_CPPFLAGS += -Iarch/$(ARCH)
154-
KBUILD_AFLAGS += -Iarch/$(ARCH)
155+
KBUILD_AFLAGS += -Iarch/$(ARCH) $(AFLAGS-y)
155156
KBUILD_CFLAGS += -msoft-float -pipe -Iarch/$(ARCH) $(CFLAGS-y)
156157
CPP = $(CC) -E $(KBUILD_CFLAGS)
157158

0 commit comments

Comments
 (0)