x86/boot: Check that there are no run-time relocations
authorArvind Sankar <nivedita@alum.mit.edu>
Fri, 31 Jul 2020 23:07:51 +0000 (16:07 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 14 Aug 2020 10:52:35 +0000 (12:52 +0200)
commit527afc212231ea9d585b7709c0ab73263ecf0c85
tree6dd5a9b2c29276756522a69b3f15fde39eac4fb0
parent3f086189cd3641d212949ff044d8e4486c93d55e
x86/boot: Check that there are no run-time relocations

Add a linker script check that there are no run-time relocations, and
remove the old one that tries to check via looking for specially-named
sections in the object files.

Drop the tests for -fPIE compiler option and -pie linker option, as they
are available in all supported gcc and binutils versions (as well as
clang and lld).

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Fangrui Song <maskray@google.com>
Reviewed-by: Sedat Dilek <sedat.dilek@gmail.com>
Link: https://lore.kernel.org/r/20200731230820.1742553-8-keescook@chromium.org
arch/x86/boot/compressed/Makefile
arch/x86/boot/compressed/vmlinux.lds.S