]> git.ipfire.org Git - thirdparty/openssl.git/commit
x86asm: Generate endbr32 based on __CET__.
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Thu, 19 May 2022 19:51:18 +0000 (21:51 +0200)
committerPauli <pauli@openssl.org>
Tue, 24 May 2022 03:16:06 +0000 (13:16 +1000)
commit272138795ffa63d5811e985f98cac94acf658dbe
tree88714247b1dfbcd54fdb9bcf50979b898607044f
parent9968c77539d6f7c5b1dcf0162fd4b57c144318c7
x86asm: Generate endbr32 based on __CET__.

The VIA Nehemiah CPU is a x86-32 CPU without SSE2 support. It does not
support multi byte nops and considers the endb32 opcode as an invalid
instruction.

Add an ifdef around the endbr32 opcode on x86-32.

Fixes: #18334
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18353)
crypto/perlasm/x86asm.pl