diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-03-23 15:48:36 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-03-23 18:36:01 +0300 |
commit | 9fcb51c14da2953de585c5c6e50697b8a6e91a7b (patch) | |
tree | 164dd5f522b595240662ab1105db300271e01cf3 /arch/x86 | |
parent | 8249d17d3194eac064a8ca5bc5ca0abc86feecde (diff) | |
download | linux-9fcb51c14da2953de585c5c6e50697b8a6e91a7b.tar.xz |
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 <arnd@arndb.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210323124846.1584944-1-arnd@kernel.org
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 2d6d5a28c3bf..9a85eae37b17 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -27,7 +27,7 @@ endif REALMODE_CFLAGS := -m16 -g -Os -DDISABLE_BRANCH_PROFILING \ -Wall -Wstrict-prototypes -march=i386 -mregparm=3 \ -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ - -mno-mmx -mno-sse + -mno-mmx -mno-sse $(call cc-option,-fcf-protection=none) REALMODE_CFLAGS += -ffreestanding REALMODE_CFLAGS += -fno-stack-protector |