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
F153845788: D37268.id.diff
Fri, Apr 24, 5:28 AM
F153837945: D37268.id112639.diff
Fri, Apr 24, 3:54 AM
F153824539: D37268.id112614.diff
Fri, Apr 24, 1:17 AM
F153810514: D37268.id.diff
Thu, Apr 23, 10:44 PM
F153798971: D37268.id112614.diff
Thu, Apr 23, 8:26 PM
Unknown Object (File)
Mon, Apr 20, 1:57 AM
Unknown Object (File)
Mon, Apr 20, 12:36 AM
Unknown Object (File)
Sun, Apr 12, 10: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