objtool: Generic annotation infrastructure
authorPeter Zijlstra <peterz@infradead.org>
Thu, 28 Nov 2024 09:38:52 +0000 (10:38 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 2 Dec 2024 11:01:41 +0000 (12:01 +0100)
commit2116b349e29a2e9ba17ea2e45b31234e4b350793
tree6dd85584c3a83a90e0bc469b1fc2854688624044
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
objtool: Generic annotation infrastructure

Avoid endless .discard.foo sections for each annotation, create a
single .discard.annotate_insn section that takes an annotation type along
with the instruction.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://lore.kernel.org/r/20241128094310.932794537@infradead.org
include/linux/objtool.h
tools/objtool/check.c