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