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
Showing
Please register or sign in to comment