Skip to content

Commit 7c73059

Browse files
arndbgregkh
authored andcommitted
x86/build: Turn off -fcf-protection for realmode targets
[ Upstream commit 9fcb51c ] The new Ubuntu GCC packages turn on -fcf-protection globally, which causes a build failure in the x86 realmode code: cc1: error: ‘-fcf-protection’ is not compatible with this target Turn it off explicitly on compilers that understand this option. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20210323124846.1584944-1-arnd@kernel.org Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 6372aa9 commit 7c73059

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/x86/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ M16_CFLAGS := $(call cc-option, -m16, $(CODE16GCC_CFLAGS))
3434
REALMODE_CFLAGS := $(M16_CFLAGS) -g -Os -DDISABLE_BRANCH_PROFILING \
3535
-Wall -Wstrict-prototypes -march=i386 -mregparm=3 \
3636
-fno-strict-aliasing -fomit-frame-pointer -fno-pic \
37-
-mno-mmx -mno-sse
37+
-mno-mmx -mno-sse $(call cc-option,-fcf-protection=none)
3838

3939
REALMODE_CFLAGS += -ffreestanding
4040
REALMODE_CFLAGS += -fno-stack-protector

0 commit comments

Comments
 (0)