[PATCH] D65761: Add Windows Control Flow Guard checks (/guard:cf).

dmajor via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 5 18:26:10 PST 2019


dmajor added a comment.

In D65761#1772031 <https://reviews.llvm.org/D65761#1772031>, @rnk wrote:

> I think `-fcf-protection` and `__attribute__((nocf_check))` have to do with CET and Intel's endbranch instruction or what have you. Similar goals, different implementation. I think at this point it's "patches welcome". =S


Well, this patch specifically has code (even a test) that `nocf_check` prevents CFG, so it looks like the intent was there, it's just that there isn't a way to get that attribute onto functions from cpp in a CFG/non-CET world.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65761/new/

https://reviews.llvm.org/D65761





More information about the cfe-commits mailing list