Add some missing cfi frame info in aesni-gcm-x86_64.pl
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 22 Dec 2019 14:39:58 +0000 (15:39 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 23 Dec 2019 19:23:27 +0000 (20:23 +0100)
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/10677)

crypto/modes/asm/aesni-gcm-x86_64.pl

index d5ab0457f8ab282c62024fa18d2fd5e77b83ff54..837c06266c79afdbaf7359d7ead7f4143436da05 100644 (file)
@@ -92,6 +92,7 @@ $code=<<___;
 .type  _aesni_ctr32_ghash_6x,\@abi-omnipotent
 .align 32
 _aesni_ctr32_ghash_6x:
+.cfi_startproc
        vmovdqu         0x20($const),$T2        # borrow $T2, .Lone_msb
        sub             \$6,$len
        vpxor           $Z0,$Z0,$Z0             # $Z0   = 0
@@ -399,6 +400,7 @@ _aesni_ctr32_ghash_6x:
        vpxor           $Z0,$Xi,$Xi             # modulo-scheduled
 
        ret
+.cfi_endproc
 .size  _aesni_ctr32_ghash_6x,.-_aesni_ctr32_ghash_6x
 ___
 ######################################################################
@@ -545,6 +547,7 @@ $code.=<<___;
 .type  _aesni_ctr32_6x,\@abi-omnipotent
 .align 32
 _aesni_ctr32_6x:
+.cfi_startproc
        vmovdqu         0x00-0x80($key),$Z0     # borrow $Z0 for $rndkey
        vmovdqu         0x20($const),$T2        # borrow $T2, .Lone_msb
        lea             -1($rounds),%r13
@@ -631,6 +634,7 @@ _aesni_ctr32_6x:
        vpshufb         $Ii,$T1,$T1             # next counter value
        vpxor           $Z0,$inout5,$inout5
        jmp     .Loop_ctr32
+.cfi_endproc
 .size  _aesni_ctr32_6x,.-_aesni_ctr32_6x
 
 .globl aesni_gcm_encrypt
@@ -1081,15 +1085,19 @@ $code=<<___;    # assembler is too old
 .globl aesni_gcm_encrypt
 .type  aesni_gcm_encrypt,\@abi-omnipotent
 aesni_gcm_encrypt:
+.cfi_startproc
        xor     %eax,%eax
        ret
+.cfi_endproc
 .size  aesni_gcm_encrypt,.-aesni_gcm_encrypt
 
 .globl aesni_gcm_decrypt
 .type  aesni_gcm_decrypt,\@abi-omnipotent
 aesni_gcm_decrypt:
+.cfi_startproc
        xor     %eax,%eax
        ret
+.cfi_endproc
 .size  aesni_gcm_decrypt,.-aesni_gcm_decrypt
 ___
 }}}