From 2dab7f74fecefab38fbd9c2d171e5a6090e66829 Mon Sep 17 00:00:00 2001 From: Zhipeng Xie Date: Thu, 27 Feb 2020 15:36:55 -0500 Subject: [PATCH 16/24] create-diff-object: fix .orc_unwind_ip error error: .orc_unwind_ip section header details differ from .orc_unwind_ip Don't correlate .orc_unwind sections and symbols Signed-off-by: Zhipeng Xie --- 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 index 8c5af6b..5f51034 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -1079,6 +1079,9 @@ static void kpatch_correlate_sections(struct list_head *seclist_orig, continue; } + if (strstr(sec_orig->name, ".orc_unwind")) + continue; + kpatch_correlate_section(sec_orig, sec_patched); break; } @@ -1125,6 +1128,9 @@ static void kpatch_correlate_symbols(struct list_head *symlist_orig, sym_orig->sec->twin != sym_patched->sec) continue; + if (strstr(sym_orig->name, ".orc_unwind")) + continue; + kpatch_correlate_symbol(sym_orig, sym_patched); break; } -- 2.23.0