2024-03-02 00:18:20 +08:00
|
|
|
From cd4c9a46e2499ed56950d324b3d95c580e0ab03a Mon Sep 17 00:00:00 2001
|
2020-02-27 17:15:29 -05:00
|
|
|
From: Zhipeng Xie <xiezhipeng1@huawei.com>
|
|
|
|
|
Date: Thu, 27 Feb 2020 15:36:55 -0500
|
2024-03-02 00:18:20 +08:00
|
|
|
Subject: [PATCH 15/38] create-diff-object: fix .orc_unwind_ip error
|
2020-02-27 17:15:29 -05:00
|
|
|
|
|
|
|
|
error: .orc_unwind_ip section header details
|
|
|
|
|
differ from .orc_unwind_ip
|
|
|
|
|
|
|
|
|
|
Don't correlate .orc_unwind sections and symbols
|
|
|
|
|
|
2020-03-22 06:56:43 -04:00
|
|
|
Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
|
2020-02-27 17:15:29 -05:00
|
|
|
---
|
|
|
|
|
kpatch-build/create-diff-object.c | 6 ++++++
|
|
|
|
|
1 file changed, 6 insertions(+)
|
|
|
|
|
|
|
|
|
|
diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c
|
2024-03-02 00:18:20 +08:00
|
|
|
index 2d28aa0..41a9c0f 100644
|
2020-02-27 17:15:29 -05:00
|
|
|
--- a/kpatch-build/create-diff-object.c
|
|
|
|
|
+++ b/kpatch-build/create-diff-object.c
|
2024-03-02 00:18:20 +08:00
|
|
|
@@ -1108,6 +1108,9 @@ static void kpatch_correlate_sections(struct list_head *seclist_orig,
|
2020-02-27 17:15:29 -05:00
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-16 12:10:06 +08:00
|
|
|
+ if (strstr(sec_orig->name, ".orc_unwind"))
|
2020-02-27 17:15:29 -05:00
|
|
|
+ continue;
|
|
|
|
|
+
|
2021-11-16 12:10:06 +08:00
|
|
|
kpatch_correlate_section(sec_orig, sec_patched);
|
2020-02-27 17:15:29 -05:00
|
|
|
break;
|
|
|
|
|
}
|
2024-03-02 00:18:20 +08:00
|
|
|
@@ -1148,6 +1151,9 @@ static void kpatch_correlate_symbols(struct list_head *symlist_orig,
|
2021-11-16 12:10:06 +08:00
|
|
|
sym_orig->sec->twin != sym_patched->sec)
|
2020-02-27 17:15:29 -05:00
|
|
|
continue;
|
|
|
|
|
|
2021-11-16 12:10:06 +08:00
|
|
|
+ if (strstr(sym_orig->name, ".orc_unwind"))
|
2020-02-27 17:15:29 -05:00
|
|
|
+ continue;
|
|
|
|
|
+
|
2021-11-16 12:10:06 +08:00
|
|
|
kpatch_correlate_symbol(sym_orig, sym_patched);
|
2020-02-27 17:15:29 -05:00
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
--
|
2023-01-30 16:10:43 +08:00
|
|
|
2.33.0
|
2020-09-12 05:45:06 -04:00
|
|
|
|