Skip to content

Commit ca7e10b

Browse files
samitolvanenkees
authored andcommitted
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 <[email protected]> Reviewed-by: Kees Cook <[email protected]> Tested-by: Kees Cook <[email protected]> Tested-by: Nathan Chancellor <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent dfb352a commit ca7e10b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/tools/relocs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ static const char * const sym_regex_kernel[S_NSYMTYPES] = {
5656
"^(xen_irq_disable_direct_reloc$|"
5757
"xen_save_fl_direct_reloc$|"
5858
"VDSO|"
59+
"__kcfi_typeid_|"
5960
"__crc_)",
6061

6162
/*

0 commit comments

Comments
 (0)