From c730c3b3b1845cc7c4a4aceff2031f1135faa6bb Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 24 Feb 2024 15:30:14 +0000 Subject: Replace uses of endbr64 with _CET_ENDBR from cet.h cet.h is needed for other platforms to emit the relevant .gnu.properties sections that are necessary for them to enable IBT. It also avoids issues with older toolchains on macOS that explode on encountering endbr64. based on a diff by kettenis ok beck kettenis --- src/lib/libcrypto/modes/asm/ghash-x86_64.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (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 4fded507c8..f3caac15d6 100644 --- a/src/lib/libcrypto/modes/asm/ghash-x86_64.pl +++ b/src/lib/libcrypto/modes/asm/ghash-x86_64.pl @@ -412,7 +412,7 @@ $code.=<<___; .type gcm_init_clmul,\@abi-omnipotent .align 16 gcm_init_clmul: - endbr64 + _CET_ENDBR movdqu ($Xip),$Hkey pshufd \$0b01001110,$Hkey,$Hkey # dword swap @@ -450,7 +450,7 @@ $code.=<<___; .type gcm_gmult_clmul,\@abi-omnipotent .align 16 gcm_gmult_clmul: - endbr64 + _CET_ENDBR movdqu ($Xip),$Xi movdqa .Lbswap_mask(%rip),$T3 movdqu ($Htbl),$Hkey @@ -478,7 +478,7 @@ $code.=<<___; .type gcm_ghash_clmul,\@abi-omnipotent .align 16 gcm_ghash_clmul: - endbr64 + _CET_ENDBR ___ $code.=<<___ if ($win64); .LSEH_begin_gcm_ghash_clmul: @@ -689,7 +689,7 @@ $code.=<<___; .type se_handler,\@abi-omnipotent .align 16 se_handler: - endbr64 + _CET_ENDBR push %rsi push %rdi push %rbx -- cgit v1.2.3-55-g6feb