OSDN Git Service

objtool: Add --cfi to generate the .cfi_sites section
authorPeter Zijlstra <peterz@infradead.org>
Thu, 27 Oct 2022 09:28:13 +0000 (11:28 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 1 Nov 2022 12:44:10 +0000 (13:44 +0100)
commit9a479f766be1dd777e12e3e57b6ee4c3028a40a5
tree5906547109c045bc9b590755b9c1ecd1218769e2
parentb341b20d648bb7e9a3307c33163e7399f0913e66
objtool: Add --cfi to generate the .cfi_sites section

Add the location of all __cfi_##name symbols (as generated by kCFI) to
a section such that we might re-write things at kernel boot.

Notably; boot time re-hashing and FineIBT are the intended use of
this.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20221027092842.568039454@infradead.org
tools/objtool/builtin-check.c
tools/objtool/check.c
tools/objtool/include/objtool/builtin.h