WSL2-Linux-Kernel/tools/objtool/include/objtool
Peter Zijlstra 89bc853eae objtool: Find unused ENDBR instructions
Find all ENDBR instructions which are never referenced and stick them
in a section such that the kernel can poison them, sealing the
functions from ever being an indirect call target.

This removes about 1-in-4 ENDBR instructions.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20220308154319.763643193@infradead.org
2022-03-15 10:32:47 +01:00
..
arch.h objtool: Add IBT/ENDBR decoding 2022-03-15 10:32:46 +01:00
builtin.h objtool: Validate IBT assumptions 2022-03-15 10:32:46 +01:00
cfi.h objtool: Introduce CFI hash 2021-09-15 15:51:45 +02:00
check.h objtool: Read the NOENDBR annotation 2022-03-15 10:32:46 +01:00
elf.h objtool: Ignore extra-symbol code 2022-03-15 10:32:43 +01:00
endianness.h objtool: Rework header include paths 2021-01-13 18:13:14 -06:00
objtool.h objtool: Find unused ENDBR instructions 2022-03-15 10:32:47 +01:00
special.h objtool: Decode jump_entry::key addend 2021-05-12 14:54:55 +02:00
warn.h objtool: Have WARN_FUNC fall back to sym+off 2022-03-15 10:32:32 +01:00