Commit 7c936d8b authored by Arvind Sankar's avatar Arvind Sankar Committed by Alistair Delva
Browse files

FROMLIST: 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).

Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Reviewed-by: default avatarArd Biesheuvel <ardb@kernel.org>
Reviewed-by: default avatarFangrui Song <maskray@google.com>
Signed-off-by: default avatarArvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/lkml/20200629140928.858507-8-nivedita@alum.mit.edu


Bug: 167402429
Signed-off-by: default avatarAlistair Delva <adelva@google.com>
Change-Id: I13a1e5a3292e3b4fb054e1489f269964a31428e9
parent 3e5a0db4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment