mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
x86: make sure load_percpu_segment has no stackprotector
load_percpu_segment() is used to set up the per-cpu segment registers, which are also used for -fstack-protector. Make sure that the load_percpu_segment() function doesn't have stackprotector enabled. [ Impact: allow percpu setup before calling stack-protected functions ] Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
This commit is contained in:
parent
1406de8e11
commit
5416c26635
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,10 @@ ifdef CONFIG_FUNCTION_TRACER
|
||||||
CFLAGS_REMOVE_common.o = -pg
|
CFLAGS_REMOVE_common.o = -pg
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Make sure load_percpu_segment has no stackprotector
|
||||||
|
nostackp := $(call cc-option, -fno-stack-protector)
|
||||||
|
CFLAGS_common.o := $(nostackp)
|
||||||
|
|
||||||
obj-y := intel_cacheinfo.o addon_cpuid_features.o
|
obj-y := intel_cacheinfo.o addon_cpuid_features.o
|
||||||
obj-y += proc.o capflags.o powerflags.o common.o
|
obj-y += proc.o capflags.o powerflags.o common.o
|
||||||
obj-y += vmware.o hypervisor.o
|
obj-y += vmware.o hypervisor.o
|
||||||
|
|
Loading…
Reference in a new issue