kbuild: remove cc-option test of -ffreestanding
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 26 Jun 2020 18:59:13 +0000 (03:59 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 7 Jul 2020 02:13:10 +0000 (11:13 +0900)
commit685969e0bd732ff92e6626acc0c05f7204aa7ea6
tree731dbff8b3d5604a980508895eccfbd6447904ae
parent893ab00439a45513cae55781fc8e3b7108ee1cda
kbuild: remove cc-option test of -ffreestanding

Some Makefiles already pass -ffreestanding unconditionally.
For example, arch/arm64/lib/Makefile, arch/x86/purgatory/Makefile.

No problem report so far about hard-coding this option. So, we can
assume all supported compilers know -ffreestanding.

I confirmed GCC 4.8 and Clang manuals document this option.

Get rid of cc-option from -ffreestanding.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
arch/s390/Makefile
arch/x86/Makefile
arch/x86/boot/compressed/Makefile
drivers/firmware/efi/libstub/Makefile