llvm-project
4db69f41 - [win] Control Flow Guard: Don't set the GuardCF COFF feature if the checks are missing (#182205)

Commit
67 days ago
[win] Control Flow Guard: Don't set the GuardCF COFF feature if the checks are missing (#182205) LLVM allows Windows Control Flow Guard to be enabled in "table only" mode where it emits the Control Flow Guard tables (indicating addresses for valid targets) but doesn't emit any checks at call sites. This is almost the same as MSVC's `/d2guardnochecks` flag, EXCEPT MSVC doesn't set the COFF feature bit indicating that Control Flow Guard is enabled (`GuardCF`) whereas LLVM does. This change aligns LLVM with MSVC: in table only mode, the Control Flow Guard COFF feature bit (`GuardCF`) will not be set.
Author
Parents
Loading