Blame SOURCES/v0.9.2-backport-MR-1281-create-diff-object-add-suppo.patch

82094d
From d98f100dc979f87296ec88b63a0d506aaf4cd2bd Mon Sep 17 00:00:00 2001
82094d
From: Joe Lawrence <joe.lawrence@redhat.com>
82094d
Date: Thu, 8 Dec 2022 12:31:17 -0500
82094d
Subject: [PATCH] v0.9.2 backport: MR!1281 ("create-diff-object: add support
82094d
 for .return_sites section (x86)")
82094d
Content-type: text/plain
82094d
82094d
commit 33368a88cdf875b0edd02b0dfd3356a7e93b24db
82094d
Author: Jonathan Dobson <jdobson@redhat.com>
82094d
Date:   Sat Jul 16 15:46:54 2022 -0600
82094d
82094d
    create-diff-object: add support for .return_sites section (x86)
82094d
82094d
    Conflicts:
82094d
    	kpatch-build/create-diff-object.c
82094d
	- Manually apply patch to avoid diff context, v0.9.2 structure
82094d
	  special_section structure doesn't have .arch
82094d
82094d
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
82094d
---
82094d
 kpatch-build/create-diff-object.c | 10 ++++++++++
82094d
 1 file changed, 10 insertions(+)
82094d
82094d
diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c
82094d
index cee8adf333dc..c9afe33bbdae 100644
82094d
--- a/kpatch-build/create-diff-object.c
82094d
+++ b/kpatch-build/create-diff-object.c
82094d
@@ -1991,6 +1991,11 @@ static int altinstructions_group_size(struct kpatch_elf *kelf, int offset)
82094d
 	return size;
82094d
 }
82094d
 
82094d
+static int return_sites_group_size(struct kpatch_elf *kelf, int offset)
82094d
+{
82094d
+	return 4;
82094d
+}
82094d
+
82094d
 static int smp_locks_group_size(struct kpatch_elf *kelf, int offset)
82094d
 {
82094d
 	return 4;
82094d
@@ -2103,6 +2108,11 @@ static struct special_section special_sections[] = {
82094d
 		.name		= ".altinstructions",
82094d
 		.group_size	= altinstructions_group_size,
82094d
 	},
82094d
+	{
82094d
+		.name		= ".return_sites",
82094d
+		.group_size	= return_sites_group_size,
82094d
+	},
82094d
+
82094d
 #endif
82094d
 #ifdef __powerpc64__
82094d
 	{
82094d
-- 
82094d
2.38.1
82094d