[Bug 264497] -fcf-protection causes 'illegal hardware instruction' on Geode

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 05 Nov 2022 00:44:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264497

--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=9c231325e77b1989c006daf083a3e9bd143c3d07

commit 9c231325e77b1989c006daf083a3e9bd143c3d07
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-11-04 15:59:49 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-11-05 00:42:26 +0000

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

    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
    Reviewed by:    dim
    MFC after:      1 week
    Obtained from:  LLVM commit 52516782972730ff065a34123a9d8876da08c254
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D37268

 contrib/llvm-project/clang/lib/Basic/Targets/X86.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.