Page MenuHomeFreeBSD

Clang: Add Diags for targets pre to i686 for -fcf-protection
ClosedPublic

Authored by emaste on Nov 4 2022, 4:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 8, 10:45 PM
Unknown Object (File)
Thu, Sep 3, 7:30 AM
Unknown Object (File)
Thu, Aug 27, 10:10 PM
Unknown Object (File)
Thu, Aug 27, 10:09 PM
Unknown Object (File)
Mon, Aug 24, 12:36 PM
Unknown Object (File)
Sun, Aug 16, 9:18 PM
Unknown Object (File)
Thu, Aug 13, 8:15 PM
Unknown Object (File)
Thu, Aug 13, 6:43 PM
Subscribers

Details

Summary
Intel Control-flow Enforcement Technology (CET) provides new
instructions `endbr32/64` for the indirect branch control.
They are NOPs on i686 and new targets.  We need to check for that
in case it crashes on older targets.

PR:             264497
Obtained from:  LLVM commit 52516782972730ff065a34123a9d8876da08c254

(I think this will introduce a (trivially resolved) conflict on the next import.)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable