From e2118101444d3cf3cab87297b363cecd5357ae89 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Tue, 25 Apr 2023 04:42:26 +0000 Subject: Add endbr64 where needed by inspection. Passes regresson tests. ok jsing, and kind of tb an earlier version --- src/lib/libcrypto/modes/asm/ghash-x86_64.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/libcrypto/modes') diff --git a/src/lib/libcrypto/modes/asm/ghash-x86_64.pl b/src/lib/libcrypto/modes/asm/ghash-x86_64.pl index 71d0822ac9..9ce0c38141 100644 --- a/src/lib/libcrypto/modes/asm/ghash-x86_64.pl +++ b/src/lib/libcrypto/modes/asm/ghash-x86_64.pl @@ -412,6 +412,7 @@ $code.=<<___; .type gcm_init_clmul,\@abi-omnipotent .align 16 gcm_init_clmul: + endbr64 movdqu ($Xip),$Hkey pshufd \$0b01001110,$Hkey,$Hkey # dword swap @@ -449,6 +450,7 @@ $code.=<<___; .type gcm_gmult_clmul,\@abi-omnipotent .align 16 gcm_gmult_clmul: + endbr64 movdqu ($Xip),$Xi movdqa .Lbswap_mask(%rip),$T3 movdqu ($Htbl),$Hkey @@ -476,6 +478,7 @@ $code.=<<___; .type gcm_ghash_clmul,\@abi-omnipotent .align 16 gcm_ghash_clmul: + endbr64 ___ $code.=<<___ if ($win64); .LSEH_begin_gcm_ghash_clmul: @@ -686,6 +689,7 @@ $code.=<<___; .type se_handler,\@abi-omnipotent .align 16 se_handler: + endbr64 push %rsi push %rdi push %rbx -- cgit v1.2.3-55-g6feb