diff options
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r-- | arch/powerpc/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index c6be19e9ceae..24dd1a37f8fb 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -63,7 +63,9 @@ override CC += -m$(CONFIG_WORD_SIZE) | |||
63 | override AR := GNUTARGET=elf$(CONFIG_WORD_SIZE)-powerpc $(AR) | 63 | override AR := GNUTARGET=elf$(CONFIG_WORD_SIZE)-powerpc $(AR) |
64 | endif | 64 | endif |
65 | 65 | ||
66 | LDFLAGS_vmlinux := -Bstatic | 66 | LDFLAGS_vmlinux-yy := -Bstatic |
67 | LDFLAGS_vmlinux-$(CONFIG_PPC64)$(CONFIG_RELOCATABLE) := -pie | ||
68 | LDFLAGS_vmlinux := $(LDFLAGS_vmlinux-yy) | ||
67 | 69 | ||
68 | CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=none -mcall-aixdesc | 70 | CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=none -mcall-aixdesc |
69 | CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 -mmultiple | 71 | CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 -mmultiple |
@@ -102,7 +104,10 @@ endif | |||
102 | KBUILD_CFLAGS += $(call cc-option,-mno-altivec) | 104 | KBUILD_CFLAGS += $(call cc-option,-mno-altivec) |
103 | 105 | ||
104 | # No SPE instruction when building kernel | 106 | # No SPE instruction when building kernel |
107 | # (We use all available options to help semi-broken compilers) | ||
105 | KBUILD_CFLAGS += $(call cc-option,-mno-spe) | 108 | KBUILD_CFLAGS += $(call cc-option,-mno-spe) |
109 | KBUILD_CFLAGS += $(call cc-option,-mspe=no) | ||
110 | KBUILD_CFLAGS += $(call cc-option,-mabi=no-spe) | ||
106 | 111 | ||
107 | # Enable unit-at-a-time mode when possible. It shrinks the | 112 | # Enable unit-at-a-time mode when possible. It shrinks the |
108 | # kernel considerably. | 113 | # kernel considerably. |