[PATCH] D138337: Add support for kcfi-seal optimization with LTO
Sami Tolvanen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 5 13:22:19 PST 2022
samitolvanen added a comment.
In D138337#3972009 <https://reviews.llvm.org/D138337#3972009>, @pcc wrote:
> Can't this be implicit if LTO is being used?
I would prefer to keep this behind a flag (similarly to `-mibt-seal`), so we can better control when and where the optimization enabled. For example, enabling this implicitly would currently break LTO+KCFI kernel builds as the kernel has global functions that are not address-taken in C code, but still end up being indirect called because their addresses were taken in assembly code that wasn't visible to LTO (e.g. arm64's `alternative_cb` mechanism).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138337/new/
https://reviews.llvm.org/D138337
More information about the llvm-commits
mailing list