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, Feb 25, 10:52 PM
Unknown Object (File)
Tue, Feb 25, 11:27 AM
Unknown Object (File)
Tue, Feb 25, 7:30 AM
Unknown Object (File)
Mon, Feb 24, 7:32 PM
Unknown Object (File)
Tue, Feb 11, 12:04 AM
Unknown Object (File)
Wed, Feb 5, 11:03 PM
Unknown Object (File)
Jan 27 2025, 12:42 AM
Unknown Object (File)
Jan 12 2025, 2:28 AM
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