From 3285953f7633113d399d9ccd93a134670f02d8d4 Mon Sep 17 00:00:00 2001 From: Song Liu Date: Wed, 26 May 2021 10:27:35 -0700 Subject: [PATCH] create-diff-object: ignore section _pi.* Signed-off-by: Song Liu --- kpatch-build/create-diff-object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index 2222fea..d403800 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -2592,7 +2592,8 @@ static void kpatch_mark_ignored_sections(struct kpatch_elf *kelf) list_for_each_entry(sec, &kelf->sections, list) { if (!strncmp(sec->name, ".discard", 8) || !strncmp(sec->name, ".rela.discard", 13) || - !strncmp(sec->name, ".printk_index", 13)) + !strncmp(sec->name, ".printk_index", 13) || + !strncmp(sec->name, "_pi.", 4)) sec->ignore = 1; } -- 2.30.2