Page MenuHomePhabricator

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

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

Details

Summary

This patch aims to match the changes introduced in gcc by https://gcc.gnu.org/ml/gcc-cvs/2018-04/msg00534.html. 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

Repository
rC Clang