Re: [PATCH v2] x86: fix early boot crash on gcc-10
From: Peter Zijlstra
Date: Fri Apr 17 2020 - 06:41:36 EST
On Fri, Apr 17, 2020 at 09:57:39AM +0200, Borislav Petkov wrote:
> Yeah, Peter and I have been discussing something like the below
> yesterday. I don't like the additional exports too much but would
> disable stack protector only for the one function...
I did do promise you bike-shedding... so here goes :-)
> -obj-$(CONFIG_SMP) += smpboot.o
> +
> +nostackprot := $(call cc-option, -fno-stack-protector)
> +CFLAGS_smpboot_aux.o := $(nostackprot)
> +
> +smpboot_all-y := smpboot.o smpboot_aux.o
So how about we call that file: smpboot_nostack.c or, since it only has
the one function in: start_secondary.c ?