diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-04-25 04:42:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-04-25 04:42:27 +0000 |
commit | 58df9d669d3d7ca4e3d96aec565f39f2d421ed63 (patch) | |
tree | 0c7e25baf50f9e7be8f7fac6991861d63dfce089 /lib/libcrypto/sha/asm | |
parent | e5afc37d23dd33ecc94dd525498c7d86adad6ff4 (diff) |
Add endbr64 where needed by inspection. Passes regresson tests.
ok jsing, and kind of tb an earlier version
Diffstat (limited to 'lib/libcrypto/sha/asm')
-rwxr-xr-x | lib/libcrypto/sha/asm/sha1-x86_64.pl | 4 | ||||
-rwxr-xr-x | lib/libcrypto/sha/asm/sha512-x86_64.pl | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/libcrypto/sha/asm/sha1-x86_64.pl b/lib/libcrypto/sha/asm/sha1-x86_64.pl index 43eee73c4ab..e15ff47f88b 100755 --- a/lib/libcrypto/sha/asm/sha1-x86_64.pl +++ b/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/lib/libcrypto/sha/asm/sha512-x86_64.pl b/lib/libcrypto/sha/asm/sha512-x86_64.pl index 0517eab6602..120693feeb7 100755 --- a/lib/libcrypto/sha/asm/sha512-x86_64.pl +++ b/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 |