2021-11-16 12:10:06 +08:00
|
|
|
From 2dab7f74fecefab38fbd9c2d171e5a6090e66829 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
|
2021-11-16 12:10:06 +08:00
|
|
|
Subject: [PATCH 16/24] 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
|
2021-11-16 12:10:06 +08:00
|
|
|
index 8c5af6b..5f51034 100644
|
2020-02-27 17:15:29 -05:00
|
|
|
--- a/kpatch-build/create-diff-object.c
|
|
|
|
|
+++ b/kpatch-build/create-diff-object.c
|
2021-11-16 12:10:06 +08:00
|
|
|
@@ -1079,6 +1079,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;
|
|
|
|
|
}
|
2021-11-16 12:10:06 +08:00
|
|
|
@@ -1125,6 +1128,9 @@ static void kpatch_correlate_symbols(struct list_head *symlist_orig,
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
--
|
2021-11-16 12:10:06 +08:00
|
|
|
2.23.0
|
2020-09-12 05:45:06 -04:00
|
|
|
|