x86/ibt, objtool: Add IBT_NOSEAL()
authorJosh Poimboeuf <jpoimboe@kernel.org>
Thu, 18 Aug 2022 21:39:27 +0000 (14:39 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Aug 2022 08:05:42 +0000 (04:05 -0400)
commite27e5bea956ce4d3eb15112de5fa5a3b77c2f488
tree3eabfad0e98bac95b5ec1a39d81f9f134ff18a80
parent20ec3ebd707c77fb9b11b37193449193d4649f33
x86/ibt, objtool: Add IBT_NOSEAL()

Add a macro which prevents a function from getting sealed if there are
no compile-time references to it.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Message-Id: <20220818213927.e44fmxkoq4yj6ybn@treble>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/ibt.h
tools/objtool/check.c