kpatch/0017-create-diff-object-fix-.orc_unwind_ip-error.patch

42 lines
1.2 KiB
Diff
Raw Normal View History

2020-05-11 14:59:12 +08:00
From 9fa4a3a0a62a383e635ea7de631176a4513f6db9 Mon Sep 17 00:00:00 2001
From: Zhipeng Xie <xiezhipeng1@huawei.com>
Date: Thu, 27 Feb 2020 15:36:55 -0500
2020-05-11 14:59:12 +08:00
Subject: [PATCH 17/21] 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 <xiezhipeng1@huawei.com>
---
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
2020-05-11 14:59:12 +08:00
index 495cce1..45979d6 100644
--- a/kpatch-build/create-diff-object.c
+++ b/kpatch-build/create-diff-object.c
2020-05-11 14:59:12 +08:00
@@ -972,6 +972,9 @@ static void kpatch_correlate_sections(struct list_head *seclist1, struct list_he
continue;
}
+ if (strstr(sec1->name, ".orc_unwind"))
+ continue;
+
kpatch_correlate_section(sec1, sec2);
break;
}
2020-05-11 14:59:12 +08:00
@@ -1017,6 +1020,9 @@ static void kpatch_correlate_symbols(struct list_head *symlist1, struct list_hea
sym1->sec->twin != sym2->sec)
continue;
+ if (strstr(sym1->name, ".orc_unwind"))
+ continue;
+
kpatch_correlate_symbol(sym1, sym2);
break;
}
--
2.18.1