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

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