提交 2b2faf73 编写于 作者: B Bernd Edlinger

Add some missing cfi frame info in aesni-sha and sha-x86_64.pl

Reviewed-by: NKurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/10655)

(cherry picked from commit b0d3442efc10b635863b915c2d014345f6e5a219)
上级 2b2833af
...@@ -133,6 +133,7 @@ $code.=<<___; ...@@ -133,6 +133,7 @@ $code.=<<___;
.type aesni_cbc_sha1_enc,\@abi-omnipotent .type aesni_cbc_sha1_enc,\@abi-omnipotent
.align 32 .align 32
aesni_cbc_sha1_enc: aesni_cbc_sha1_enc:
.cfi_startproc
# caller should check for SSSE3 and AES-NI bits # caller should check for SSSE3 and AES-NI bits
mov OPENSSL_ia32cap_P+0(%rip),%r10d mov OPENSSL_ia32cap_P+0(%rip),%r10d
mov OPENSSL_ia32cap_P+4(%rip),%r11 mov OPENSSL_ia32cap_P+4(%rip),%r11
...@@ -151,6 +152,7 @@ ___ ...@@ -151,6 +152,7 @@ ___
$code.=<<___; $code.=<<___;
jmp aesni_cbc_sha1_enc_ssse3 jmp aesni_cbc_sha1_enc_ssse3
ret ret
.cfi_endproc
.size aesni_cbc_sha1_enc,.-aesni_cbc_sha1_enc .size aesni_cbc_sha1_enc,.-aesni_cbc_sha1_enc
___ ___
...@@ -840,6 +842,7 @@ $code.=<<___; ...@@ -840,6 +842,7 @@ $code.=<<___;
.type aesni256_cbc_sha1_dec,\@abi-omnipotent .type aesni256_cbc_sha1_dec,\@abi-omnipotent
.align 32 .align 32
aesni256_cbc_sha1_dec: aesni256_cbc_sha1_dec:
.cfi_startproc
# caller should check for SSSE3 and AES-NI bits # caller should check for SSSE3 and AES-NI bits
mov OPENSSL_ia32cap_P+0(%rip),%r10d mov OPENSSL_ia32cap_P+0(%rip),%r10d
mov OPENSSL_ia32cap_P+4(%rip),%r11d mov OPENSSL_ia32cap_P+4(%rip),%r11d
...@@ -854,6 +857,7 @@ ___ ...@@ -854,6 +857,7 @@ ___
$code.=<<___; $code.=<<___;
jmp aesni256_cbc_sha1_dec_ssse3 jmp aesni256_cbc_sha1_dec_ssse3
ret ret
.cfi_endproc
.size aesni256_cbc_sha1_dec,.-aesni256_cbc_sha1_dec .size aesni256_cbc_sha1_dec,.-aesni256_cbc_sha1_dec
.type aesni256_cbc_sha1_dec_ssse3,\@function,6 .type aesni256_cbc_sha1_dec_ssse3,\@function,6
...@@ -1760,6 +1764,7 @@ $code.=<<___; ...@@ -1760,6 +1764,7 @@ $code.=<<___;
.type aesni_cbc_sha1_enc_shaext,\@function,6 .type aesni_cbc_sha1_enc_shaext,\@function,6
.align 32 .align 32
aesni_cbc_sha1_enc_shaext: aesni_cbc_sha1_enc_shaext:
.cfi_startproc
mov `($win64?56:8)`(%rsp),$inp # load 7th argument mov `($win64?56:8)`(%rsp),$inp # load 7th argument
___ ___
$code.=<<___ if ($win64); $code.=<<___ if ($win64);
...@@ -1911,6 +1916,7 @@ $code.=<<___ if ($win64); ...@@ -1911,6 +1916,7 @@ $code.=<<___ if ($win64);
___ ___
$code.=<<___; $code.=<<___;
ret ret
.cfi_endproc
.size aesni_cbc_sha1_enc_shaext,.-aesni_cbc_sha1_enc_shaext .size aesni_cbc_sha1_enc_shaext,.-aesni_cbc_sha1_enc_shaext
___ ___
}}} }}}
......
...@@ -123,6 +123,7 @@ $code=<<___; ...@@ -123,6 +123,7 @@ $code=<<___;
.type $func,\@abi-omnipotent .type $func,\@abi-omnipotent
.align 16 .align 16
$func: $func:
.cfi_startproc
___ ___
if ($avx) { if ($avx) {
$code.=<<___; $code.=<<___;
...@@ -162,6 +163,7 @@ $code.=<<___; ...@@ -162,6 +163,7 @@ $code.=<<___;
ud2 ud2
.Lprobe: .Lprobe:
ret ret
.cfi_endproc
.size $func,.-$func .size $func,.-$func
.align 64 .align 64
......
...@@ -468,8 +468,8 @@ $code.=<<___ if ($win64); ...@@ -468,8 +468,8 @@ $code.=<<___ if ($win64);
.Lepilogue_shaext: .Lepilogue_shaext:
___ ___
$code.=<<___; $code.=<<___;
.cfi_endproc
ret ret
.cfi_endproc
.size sha1_block_data_order_shaext,.-sha1_block_data_order_shaext .size sha1_block_data_order_shaext,.-sha1_block_data_order_shaext
___ ___
}}} }}}
......
...@@ -569,6 +569,7 @@ $code.=<<___; ...@@ -569,6 +569,7 @@ $code.=<<___;
.align 64 .align 64
sha256_block_data_order_shaext: sha256_block_data_order_shaext:
_shaext_shortcut: _shaext_shortcut:
.cfi_startproc
___ ___
$code.=<<___ if ($win64); $code.=<<___ if ($win64);
lea `-8-5*16`(%rsp),%rsp lea `-8-5*16`(%rsp),%rsp
...@@ -712,6 +713,7 @@ $code.=<<___ if ($win64); ...@@ -712,6 +713,7 @@ $code.=<<___ if ($win64);
___ ___
$code.=<<___; $code.=<<___;
ret ret
.cfi_endproc
.size sha256_block_data_order_shaext,.-sha256_block_data_order_shaext .size sha256_block_data_order_shaext,.-sha256_block_data_order_shaext
___ ___
}}} }}}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册