Skip to content

Commit 9fcb51c

Browse files
arndbIngo Molnar
authored andcommitted
x86/build: Turn off -fcf-protection for realmode targets
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8249d17 commit 9fcb51c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ endif
2727
REALMODE_CFLAGS := -m16 -g -Os -DDISABLE_BRANCH_PROFILING \
2828
-Wall -Wstrict-prototypes -march=i386 -mregparm=3 \
2929
-fno-strict-aliasing -fomit-frame-pointer -fno-pic \
30-
-mno-mmx -mno-sse
30+
-mno-mmx -mno-sse $(call cc-option,-fcf-protection=none)
3131

3232
REALMODE_CFLAGS += -ffreestanding
3333
REALMODE_CFLAGS += -fno-stack-protector

0 commit comments

Comments
 (0)