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/sha/asm/sha1-x86_64.pl | 4 ++++ src/lib/libcrypto/sha/asm/sha512-x86_64.pl | 1 + 2 files changed, 5 insertions(+) (limited to 'src/lib/libcrypto/sha') diff --git a/src/lib/libcrypto/sha/asm/sha1-x86_64.pl b/src/lib/libcrypto/sha/asm/sha1-x86_64.pl index 43eee73c4a..e15ff47f88 100755 --- a/src/lib/libcrypto/sha/asm/sha1-x86_64.pl +++ b/src/lib/libcrypto/sha/asm/sha1-x86_64.pl @@ -222,6 +222,7 @@ $code.=<<___; .type sha1_block_data_order,\@function,3 .align 16 sha1_block_data_order: + endbr64 mov OPENSSL_ia32cap_P+0(%rip),%r9d mov OPENSSL_ia32cap_P+4(%rip),%r8d test \$IA32CAP_MASK1_SSSE3,%r8d # check SSSE3 bit @@ -309,6 +310,7 @@ $code.=<<___; .align 16 sha1_block_data_order_ssse3: _ssse3_shortcut: + endbr64 push %rbx push %rbp push %r12 @@ -729,6 +731,7 @@ $code.=<<___; .align 16 sha1_block_data_order_avx: _avx_shortcut: + endbr64 push %rbx push %rbp push %r12 @@ -1099,6 +1102,7 @@ $code.=<<___; .type se_handler,\@abi-omnipotent .align 16 se_handler: + endbr64 push %rsi push %rdi push %rbx diff --git a/src/lib/libcrypto/sha/asm/sha512-x86_64.pl b/src/lib/libcrypto/sha/asm/sha512-x86_64.pl index 0517eab660..120693feeb 100755 --- a/src/lib/libcrypto/sha/asm/sha512-x86_64.pl +++ b/src/lib/libcrypto/sha/asm/sha512-x86_64.pl @@ -175,6 +175,7 @@ $code=<<___; .type $func,\@function,4 .align 16 $func: + endbr64 push %rbx push %rbp push %r12 -- cgit v1.2.3-55-g6feb