x86/tools/relocs: Ignore __kcfi_typeid_ relocations
authorSami Tolvanen <samitolvanen@google.com>
Thu, 8 Sep 2022 21:55:01 +0000 (14:55 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 26 Sep 2022 17:13:15 +0000 (10:13 -0700)
commitca7e10bff196f69a450b9072a7b757713d3bb2dd
tree00f75a2bafcaa58833a082d6c909bc4127ad8c0e
parentdfb352ab1162f73b8c6dc98150fa32cf5aa2f623
x86/tools/relocs: Ignore __kcfi_typeid_ relocations

The compiler generates __kcfi_typeid_ symbols for annotating assembly
functions with type information. These are constants that can be
referenced in assembly code and are resolved by the linker. Ignore
them in relocs.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Kees Cook <keescook@chromium.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220908215504.3686827-20-samitolvanen@google.com
arch/x86/tools/relocs.c