aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/objtool/include
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2022-10-27 11:28:13 +0200
committerPeter Zijlstra <peterz@infradead.org>2022-11-01 13:44:10 +0100
commit9a479f766be1dd777e12e3e57b6ee4c3028a40a5 (patch)
tree5906547109c045bc9b590755b9c1ecd1218769e2 /tools/objtool/include
parentx86: Add prefix symbols for function padding (diff)
downloadwireguard-linux-9a479f766be1dd777e12e3e57b6ee4c3028a40a5.tar.xz
wireguard-linux-9a479f766be1dd777e12e3e57b6ee4c3028a40a5.zip
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
Diffstat (limited to 'tools/objtool/include')
-rw-r--r--tools/objtool/include/objtool/builtin.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/objtool/include/objtool/builtin.h b/tools/objtool/include/objtool/builtin.h
index f341b620dead..c44ff39df80c 100644
--- a/tools/objtool/include/objtool/builtin.h
+++ b/tools/objtool/include/objtool/builtin.h
@@ -27,6 +27,7 @@ struct opts {
bool static_call;
bool uaccess;
int prefix;
+ bool cfi;
/* options: */
bool backtrace;