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

cc0e73
From ea6a6f2d23a0af0e2cde8c99f0b7f0becf6beee5 Mon Sep 17 00:00:00 2001
cc0e73
From: Joe Lawrence <joe.lawrence@redhat.com>
cc0e73
Date: Thu, 8 Dec 2022 12:51:23 -0500
cc0e73
Subject: [PATCH] v0.9.6 backport: MR!1281 ("create-diff-object: add support
cc0e73
 for .return_sites section (x86)")
cc0e73
Content-type: text/plain
cc0e73
cc0e73
commit 33368a88cdf875b0edd02b0dfd3356a7e93b24db
cc0e73
Author: Jonathan Dobson <jdobson@redhat.com>
cc0e73
Date:   Sat Jul 16 15:46:54 2022 -0600
cc0e73
cc0e73
    create-diff-object: add support for .return_sites section (x86)
cc0e73
cc0e73
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
cc0e73
---
cc0e73
 kpatch-build/create-diff-object.c | 10 ++++++++++
cc0e73
 1 file changed, 10 insertions(+)
cc0e73
cc0e73
diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c
cc0e73
index 826741d07fc7..a79ec7985135 100644
cc0e73
--- a/kpatch-build/create-diff-object.c
cc0e73
+++ b/kpatch-build/create-diff-object.c
cc0e73
@@ -2132,6 +2132,11 @@ static int retpoline_sites_group_size(struct kpatch_elf *kelf, int offset)
cc0e73
 	return 4;
cc0e73
 }
cc0e73
 
cc0e73
+static int return_sites_group_size(struct kpatch_elf *kelf, int offset)
cc0e73
+{
cc0e73
+	return 4;
cc0e73
+}
cc0e73
+
cc0e73
 static int fixup_entry_group_size(struct kpatch_elf *kelf, int offset)
cc0e73
 {
cc0e73
 	static int size = 0;
cc0e73
@@ -2258,6 +2263,11 @@ static struct special_section special_sections[] = {
cc0e73
 		.arch		= X86_64,
cc0e73
 		.group_size	= retpoline_sites_group_size,
cc0e73
 	},
cc0e73
+	{
cc0e73
+		.name		= ".return_sites",
cc0e73
+		.arch		= X86_64,
cc0e73
+		.group_size	= return_sites_group_size,
cc0e73
+	},
cc0e73
 	{
cc0e73
 		.name		= "__ftr_fixup",
cc0e73
 		.arch		= PPC64,
cc0e73
-- 
cc0e73
2.38.1
cc0e73