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