summaryrefslogtreecommitdiffstats
path: root/crypto/whrlpool
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2017-02-25 22:16:57 +0100
committerAndy Polyakov <appro@openssl.org>2017-02-26 21:26:24 +0100
commitfa62bc4661960a593a77d2c3f260173c3aa7333d (patch)
treed96047f35c46f781983585de8ce9b42179a93caa /crypto/whrlpool
parent49508b23ce929ad5c8381bdc4b397eb41fd06137 (diff)
whrlpool/asm/wp-x86_64.pl: add CFI annotations.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/whrlpool')
-rw-r--r--crypto/whrlpool/asm/wp-x86_64.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/crypto/whrlpool/asm/wp-x86_64.pl b/crypto/whrlpool/asm/wp-x86_64.pl
index d0b7ecc9e7..4a1261d8cd 100644
--- a/crypto/whrlpool/asm/wp-x86_64.pl
+++ b/crypto/whrlpool/asm/wp-x86_64.pl
@@ -66,13 +66,21 @@ $code=<<___;
.type $func,\@function,3
.align 16
$func:
+.cfi_startproc
mov %rsp,%rax
+.cfi_def_cfa_register %rax
push %rbx
+.cfi_push %rbx
push %rbp
+.cfi_push %rbp
push %r12
+.cfi_push %r12
push %r13
+.cfi_push %r13
push %r14
+.cfi_push %r14
push %r15
+.cfi_push %r15
sub \$128+40,%rsp
and \$-64,%rsp
@@ -82,6 +90,7 @@ $func:
mov %rsi,8(%r10)
mov %rdx,16(%r10)
mov %rax,32(%r10) # saved stack pointer
+.cfi_cfa_expression %rsp+`128+32`,deref,+8
.Lprologue:
mov %r10,%rbx
@@ -205,15 +214,24 @@ $code.=<<___;
jmp .Louterloop
.Lalldone:
mov 32(%rbx),%rsi # restore saved pointer
+.cfi_def_cfa %rsi,8
mov -48(%rsi),%r15
+.cfi_restore %r15
mov -40(%rsi),%r14
+.cfi_restore %r14
mov -32(%rsi),%r13
+.cfi_restore %r13
mov -24(%rsi),%r12
+.cfi_restore %r12
mov -16(%rsi),%rbp
+.cfi_restore %rbp
mov -8(%rsi),%rbx
+.cfi_restore %rbx
lea (%rsi),%rsp
+.cfi_def_cfa_register %rsp
.Lepilogue:
ret
+.cfi_endproc
.size $func,.-$func
.align 64