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