[PATCH] D76900: Enable IBT(Indirect Branch Tracking) in JIT with CET(Control-flow Enforcement Technology)
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 26 20:40:19 PDT 2020
efriedma added inline comments.
================
Comment at: llvm/lib/Target/X86/X86IndirectBranchTracking.cpp:128
// unless nocf_check attribute is used.
- if ((MF.getFunction().hasAddressTaken() ||
+ if ((isJITwithCET || MF.getFunction().hasAddressTaken() ||
!MF.getFunction().hasLocalLinkage()) &&
----------------
This looks wrong; you can't get the address of a function with internal linkage, whether or not the JIT is involved.
That said, it's possible there something else going wrong here; the JIT defaults to the large code model, which is rarely used otherwise.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76900/new/
https://reviews.llvm.org/D76900
More information about the llvm-commits
mailing list