Fix some CFI issues in x86_64 assembly
[openssl.git] / crypto / modes / asm / ghash-x86_64.pl
index afc30c3e72a435d800219b584d2f27523f0c7869..136b5a394e8259cc7365bd4407412d8f90ce04d3 100644 (file)
@@ -529,6 +529,7 @@ $code.=<<___;
 .type  gcm_init_clmul,\@abi-omnipotent
 .align 16
 gcm_init_clmul:
+.cfi_startproc
 .L_init_clmul:
 ___
 $code.=<<___ if ($win64);
@@ -598,6 +599,7 @@ $code.=<<___ if ($win64);
 ___
 $code.=<<___;
        ret
+.cfi_endproc
 .size  gcm_init_clmul,.-gcm_init_clmul
 ___
 }
@@ -609,6 +611,7 @@ $code.=<<___;
 .type  gcm_gmult_clmul,\@abi-omnipotent
 .align 16
 gcm_gmult_clmul:
+.cfi_startproc
 .L_gmult_clmul:
        movdqu          ($Xip),$Xi
        movdqa          .Lbswap_mask(%rip),$T3
@@ -645,6 +648,7 @@ $code.=<<___;
        pshufb          $T3,$Xi
        movdqu          $Xi,($Xip)
        ret
+.cfi_endproc
 .size  gcm_gmult_clmul,.-gcm_gmult_clmul
 ___
 }
@@ -658,6 +662,7 @@ $code.=<<___;
 .type  gcm_ghash_clmul,\@abi-omnipotent
 .align 32
 gcm_ghash_clmul:
+.cfi_startproc
 .L_ghash_clmul:
 ___
 $code.=<<___ if ($win64);
@@ -1005,6 +1010,7 @@ $code.=<<___ if ($win64);
 ___
 $code.=<<___;
        ret
+.cfi_endproc
 .size  gcm_ghash_clmul,.-gcm_ghash_clmul
 ___
 }
@@ -1014,6 +1020,7 @@ $code.=<<___;
 .type  gcm_init_avx,\@abi-omnipotent
 .align 32
 gcm_init_avx:
+.cfi_startproc
 ___
 if ($avx) {
 my ($Htbl,$Xip)=@_4args;
@@ -1142,6 +1149,7 @@ $code.=<<___ if ($win64);
 ___
 $code.=<<___;
        ret
+.cfi_endproc
 .size  gcm_init_avx,.-gcm_init_avx
 ___
 } else {
@@ -1156,7 +1164,9 @@ $code.=<<___;
 .type  gcm_gmult_avx,\@abi-omnipotent
 .align 32
 gcm_gmult_avx:
+.cfi_startproc
        jmp     .L_gmult_clmul
+.cfi_endproc
 .size  gcm_gmult_avx,.-gcm_gmult_avx
 ___
 \f
@@ -1165,6 +1175,7 @@ $code.=<<___;
 .type  gcm_ghash_avx,\@abi-omnipotent
 .align 32
 gcm_ghash_avx:
+.cfi_startproc
 ___
 if ($avx) {
 my ($Xip,$Htbl,$inp,$len)=@_4args;
@@ -1577,6 +1588,7 @@ $code.=<<___ if ($win64);
 ___
 $code.=<<___;
        ret
+.cfi_endproc
 .size  gcm_ghash_avx,.-gcm_ghash_avx
 ___
 } else {