Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2022 11:22:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 267401] clang; i386 ; generates code for target that doesn't support it (CET instructions)
Message-ID:  <bug-267401-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267401

            Bug ID: 267401
           Summary: clang; i386 ; generates code for target that doesn't
                    support it (CET instructions)
           Product: Base System
           Version: Unspecified
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: martin@bxlr.sk

CPU target: i586, clang generates code that is not supported by target caus=
ing
program to crash due to illegal instruction.
Illegal instruction is: endbr32

Tested on physical box running i386 FreeBSD 13.1.

CPU: Pentium/P55C (233.87-MHz 586-class CPU)
  Origin=3D"GenuineIntel"  Id=3D0x543  Family=3D0x5  Model=3D0x4  Stepping=
=3D3
  Features=3D0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>

Simple "hello world" c code compiled with CFLAGS=3D-g -march=3Di586
-fcf-protection.

As target doesn't support flow control -fcf-protection should not be used.
Similar bug to gcc one specified here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98667

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267401-227>