Page MenuHomePhabricator

[X86][CET] Changing -fcf-protection behavior to comply with gcc (clang part)

Authored by mike.dvoretsky on May 15 2018, 7:42 AM.



This patch aims to match the changes introduced in gcc by The -mibt feature flag is being removed, and the -fcf-protection option now also defines a CET macro and causes errors when used on non-X86 targets, while X86 targets no longer check for -mibt and -mshstk to determine if -fcf-protection is supported. -mshstk is now used only to determine availability of shadow stack intrinsics.

Comes with an LLVM patch (D46882).

Diff Detail

rC Clang