Makefile (1f195e557d137be004894d2016357013331ec3d0) Makefile (59612b24f78a0b61fe078ec9dff2e48e9cec52c0)
1# This file is included by the global makefile so that you can add your own
2# architecture-specific flags and dependencies. Remember to do have actions
3# for "archclean" and "archdep" for cleaning up and making dependencies for
4# this architecture.
5#
6# This file is subject to the terms and conditions of the GNU General Public
7# License. See the file "COPYING" in the main directory of this archive
8# for more details.

--- 109 unchanged lines hidden (view full) ---

118cflags-$(CONFIG_STACKPROTECTOR) += -mstack-protector-guard-reg=r13
119else
120cflags-$(CONFIG_STACKPROTECTOR) += -mstack-protector-guard-reg=r2
121endif
122
123LDFLAGS_vmlinux-y := -Bstatic
124LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) := -pie
125LDFLAGS_vmlinux := $(LDFLAGS_vmlinux-y)
1# This file is included by the global makefile so that you can add your own
2# architecture-specific flags and dependencies. Remember to do have actions
3# for "archclean" and "archdep" for cleaning up and making dependencies for
4# this architecture.
5#
6# This file is subject to the terms and conditions of the GNU General Public
7# License. See the file "COPYING" in the main directory of this archive
8# for more details.

--- 109 unchanged lines hidden (view full) ---

118cflags-$(CONFIG_STACKPROTECTOR) += -mstack-protector-guard-reg=r13
119else
120cflags-$(CONFIG_STACKPROTECTOR) += -mstack-protector-guard-reg=r2
121endif
122
123LDFLAGS_vmlinux-y := -Bstatic
124LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) := -pie
125LDFLAGS_vmlinux := $(LDFLAGS_vmlinux-y)
126LDFLAGS_vmlinux += $(call ld-option,--orphan-handling=warn)
127
128ifdef CONFIG_PPC64
129ifeq ($(call cc-option-yn,-mcmodel=medium),y)
130 # -mcmodel=medium breaks modules because it uses 32bit offsets from
131 # the TOC pointer to create pointers where possible. Pointers into the
132 # percpu data area are created by this method.
133 #
134 # The kernel module loader relocates the percpu data section from the

--- 108 unchanged lines hidden (view full) ---

243
244# Never use string load/store instructions as they are
245# often slow when they are implemented at all
246KBUILD_CFLAGS += $(call cc-option,-mno-string)
247
248cpu-as-$(CONFIG_40x) += -Wa,-m405
249cpu-as-$(CONFIG_44x) += -Wa,-m440
250cpu-as-$(CONFIG_ALTIVEC) += $(call as-option,-Wa$(comma)-maltivec)
126
127ifdef CONFIG_PPC64
128ifeq ($(call cc-option-yn,-mcmodel=medium),y)
129 # -mcmodel=medium breaks modules because it uses 32bit offsets from
130 # the TOC pointer to create pointers where possible. Pointers into the
131 # percpu data area are created by this method.
132 #
133 # The kernel module loader relocates the percpu data section from the

--- 108 unchanged lines hidden (view full) ---

242
243# Never use string load/store instructions as they are
244# often slow when they are implemented at all
245KBUILD_CFLAGS += $(call cc-option,-mno-string)
246
247cpu-as-$(CONFIG_40x) += -Wa,-m405
248cpu-as-$(CONFIG_44x) += -Wa,-m440
249cpu-as-$(CONFIG_ALTIVEC) += $(call as-option,-Wa$(comma)-maltivec)
250cpu-as-$(CONFIG_E200) += -Wa,-me200
251cpu-as-$(CONFIG_E500) += -Wa,-me500
252
253# When using '-many -mpower4' gas will first try and find a matching power4
254# mnemonic and failing that it will allow any valid mnemonic that GAS knows
255# about. GCC will pass -many to GAS when assembling, clang does not.
256cpu-as-$(CONFIG_PPC_BOOK3S_64) += -Wa,-mpower4 -Wa,-many
257cpu-as-$(CONFIG_PPC_E500MC) += $(call as-option,-Wa$(comma)-me500mc)
258

--- 198 unchanged lines hidden ---
251cpu-as-$(CONFIG_E500) += -Wa,-me500
252
253# When using '-many -mpower4' gas will first try and find a matching power4
254# mnemonic and failing that it will allow any valid mnemonic that GAS knows
255# about. GCC will pass -many to GAS when assembling, clang does not.
256cpu-as-$(CONFIG_PPC_BOOK3S_64) += -Wa,-mpower4 -Wa,-many
257cpu-as-$(CONFIG_PPC_E500MC) += $(call as-option,-Wa$(comma)-me500mc)
258

--- 198 unchanged lines hidden ---