[Bug target/98667] gcc generates endbr32 invalid opcode on -march=i486

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 14 13:29:13 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98667

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I guess to stay compatible with such CPUs one would need to disable CET
completely.
Pentium II (or whatever is the oldest that supports it):
https://stackoverflow.com/questions/56120231/how-do-old-cpus-execute-the-new-endbr64-and-endbr32-instructions
treat it as nops, which is the expected behavior on non-CET enabled hw.


More information about the Gcc-bugs mailing list