diff options
author | Peter Zijlstra <peterz@infradead.org> | 2022-03-08 16:30:55 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-03-15 10:32:47 +0100 |
commit | 89bc853eae4ad125030ef99f207ba76c2f00a26e (patch) | |
tree | 7f3aa0f233858f04ee61872e4ae3a795433b4fa4 /arch/um/kernel | |
parent | 08f87a93c8ec709698edba66a5167077181fc978 (diff) |
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
Diffstat (limited to 'arch/um/kernel')
0 files changed, 0 insertions, 0 deletions