diff options
author | Peter Zijlstra <peterz@infradead.org> | 2022-03-08 18:30:55 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-03-15 12:32:47 +0300 |
commit | 89bc853eae4ad125030ef99f207ba76c2f00a26e (patch) | |
tree | 7f3aa0f233858f04ee61872e4ae3a795433b4fa4 /arch/um | |
parent | 08f87a93c8ec709698edba66a5167077181fc978 (diff) | |
download | linux-89bc853eae4ad125030ef99f207ba76c2f00a26e.tar.xz |
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')
0 files changed, 0 insertions, 0 deletions