x86/build: Turn off -fcf-protection for realmode targets
authorArnd Bergmann <arnd@arndb.de>
Tue, 23 Mar 2021 12:48:36 +0000 (13:48 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 23 Mar 2021 15:36:01 +0000 (16:36 +0100)
commit9fcb51c14da2953de585c5c6e50697b8a6e91a7b
tree164dd5f522b595240662ab1105db300271e01cf3
parent8249d17d3194eac064a8ca5bc5ca0abc86feecde
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
arch/x86/Makefile