diff options
author | Anton Blanchard <anton@samba.org> | 2014-04-22 20:02:04 -0400 |
---|---|---|
committer | Anton Blanchard <anton@samba.org> | 2014-04-22 20:02:04 -0400 |
commit | 58aedccb1907f05f702f0f6d8f8a57e8efe485b7 (patch) | |
tree | 9e62bab4ab9c7cafbefd5db847770ff895144fa8 /arch/powerpc/Makefile | |
parent | a798c10faf62a505d24e5f6213fbaf904a39623f (diff) |
powerpc: Don't build assembly files with ABIv2
We avoid ABIv2 when building c files since commit b2ca8c89 (powerpc:
Don't use ELFv2 ABI to build the kernel). Do the same for assembly
files.
Signed-off-by: Anton Blanchard <anton@samba.org>
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r-- | arch/powerpc/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 4c0cedf4e2c7..e8dd01af504d 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -115,6 +115,7 @@ endif | |||
115 | 115 | ||
116 | CFLAGS-$(CONFIG_PPC64) := -mtraceback=no -mcall-aixdesc | 116 | CFLAGS-$(CONFIG_PPC64) := -mtraceback=no -mcall-aixdesc |
117 | CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1) | 117 | CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1) |
118 | AFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1) | ||
118 | CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,-mminimal-toc) | 119 | CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,-mminimal-toc) |
119 | CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions) | 120 | CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions) |
120 | CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD) | 121 | CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD) |
@@ -151,7 +152,7 @@ endif | |||
151 | CFLAGS-$(CONFIG_TUNE_CELL) += $(call cc-option,-mtune=cell) | 152 | CFLAGS-$(CONFIG_TUNE_CELL) += $(call cc-option,-mtune=cell) |
152 | 153 | ||
153 | KBUILD_CPPFLAGS += -Iarch/$(ARCH) | 154 | KBUILD_CPPFLAGS += -Iarch/$(ARCH) |
154 | KBUILD_AFLAGS += -Iarch/$(ARCH) | 155 | KBUILD_AFLAGS += -Iarch/$(ARCH) $(AFLAGS-y) |
155 | KBUILD_CFLAGS += -msoft-float -pipe -Iarch/$(ARCH) $(CFLAGS-y) | 156 | KBUILD_CFLAGS += -msoft-float -pipe -Iarch/$(ARCH) $(CFLAGS-y) |
156 | CPP = $(CC) -E $(KBUILD_CFLAGS) | 157 | CPP = $(CC) -E $(KBUILD_CFLAGS) |
157 | 158 | ||