File 0013-crypto-aes-asm-aes-s390x.pl-add-CFI-annotations-KMA-.patch of Package openssl-1_1.8412

From d137c24cbf25bae932dcfc0b58fa667a9ef63bf0 Mon Sep 17 00:00:00 2001
From: Patrick Steuer <patrick.steuer@de.ibm.com>
Date: Sun, 26 Feb 2017 22:36:39 +0100
Subject: [PATCH 13/44] crypto/aes/asm/aes-s390x.pl: add CFI annotations
 (KMA-gcm code path).

Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>
---
 crypto/aes/asm/aes-s390x.pl | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/crypto/aes/asm/aes-s390x.pl b/crypto/aes/asm/aes-s390x.pl
index f23b1231c1..dfe79f84a6 100644
--- a/crypto/aes/asm/aes-s390x.pl
+++ b/crypto/aes/asm/aes-s390x.pl
@@ -2270,10 +2270,15 @@ $code.=<<___ if (!$softonly);
 .type	s390x_aes_gcm_blocks,\@function
 .align	16
 s390x_aes_gcm_blocks:
+.cfi_startproc
 	stm$g	$alen,$enc,7*$SIZE_T($sp)
+	.cfi_rel_offset $alen,7*$SIZE_T
+	.cfi_rel_offset $key,8*$SIZE_T
+	.cfi_rel_offset $enc,9*$SIZE_T
 	lm$g	$alen,$enc,$stdframe($sp)
 
 	aghi	$sp,-112
+	.cfi_adjust_cfa_offset 112
 
 	lmg	%r0,%r1,0($ctx)
 	ahi	%r1,-1
@@ -2300,11 +2305,16 @@ s390x_aes_gcm_blocks:
 	xc	0(112,$sp),0($sp)	# wipe stack
 
 	la	$sp,112($sp)
+	.cfi_adjust_cfa_offset -112
 	ahi	%r0,1
 	st	%r0,12($ctx)
 
 	lm$g	$alen,$enc,7*$SIZE_T($sp)
+	.cfi_restore $alen
+	.cfi_restore $key
+	.cfi_restore $enc
 	br	$ra
+.cfi_endproc
 .size	s390x_aes_gcm_blocks,.-s390x_aes_gcm_blocks
 ___
 }
-- 
2.13.6