summaryrefslogtreecommitdiffstats
path: root/arch/x86/Makefile
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2020-12-01 02:13:06 +0100
committerBorislav Petkov <bp@suse.de>2020-12-01 17:17:18 +0100
commit2838307b019dfec0c309c4e8e589658736cff4c9 (patch)
tree41e50028c2a178070daff066697c1ded8710e602 /arch/x86/Makefile
parentx86/build: Fix vmlinux size check on 64-bit (diff)
downloadlinux-2838307b019dfec0c309c4e8e589658736cff4c9.tar.xz
linux-2838307b019dfec0c309c4e8e589658736cff4c9.zip
x86/build: Remove -m16 workaround for unsupported versions of GCC
Revert the following two commits: de3accdaec88 ("x86, build: Build 16-bit code with -m16 where possible") a9cfccee6604 ("x86, build: Change code16gcc.h from a C header to an assembly header") Since 0bddd227f3dc ("Documentation: update for gcc 4.9 requirement") the minimum supported version of GCC is gcc-4.9. It's now safe to remove this code. Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Reviewed-by: David Woodhouse <dwmw@amazon.co.uk> Link: https://lkml.kernel.org/r/20201201011307.3676986-1-ndesaulniers@google.com
Diffstat (limited to 'arch/x86/Makefile')
-rw-r--r--arch/x86/Makefile9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 154259f18b8b..b8910661447f 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -24,14 +24,7 @@ endif
# How to compile the 16-bit code. Note we always compile for -march=i386;
# that way we can complain to the user if the CPU is insufficient.
-#
-# The -m16 option is supported by GCC >= 4.9 and clang >= 3.5. For
-# older versions of GCC, include an *assembly* header to make sure that
-# gcc doesn't play any games behind our back.
-CODE16GCC_CFLAGS := -m32 -Wa,$(srctree)/arch/x86/boot/code16gcc.h
-M16_CFLAGS := $(call cc-option, -m16, $(CODE16GCC_CFLAGS))
-
-REALMODE_CFLAGS := $(M16_CFLAGS) -g -Os -DDISABLE_BRANCH_PROFILING \
+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