beb603
From 400ded23da6d998982c0ffa384e0f2a790d78069 Mon Sep 17 00:00:00 2001
beb603
From: Song Liu <song@kernel.org>
beb603
Date: Fri, 30 Apr 2021 17:16:46 -0700
beb603
Subject: [PATCH] create-diff-object: ignore section .printk_index
beb603
beb603
Signed-off-by: Song Liu <song@kernel.org>
beb603
---
beb603
 kpatch-build/create-diff-object.c | 3 ++-
beb603
 1 file changed, 2 insertions(+), 1 deletion(-)
beb603
beb603
diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c
beb603
index 82e486f..502922c 100644
beb603
--- a/kpatch-build/create-diff-object.c
beb603
+++ b/kpatch-build/create-diff-object.c
beb603
@@ -2591,7 +2591,8 @@ static void kpatch_mark_ignored_sections(struct kpatch_elf *kelf)
beb603
 	/* Ignore any discarded sections */
beb603
 	list_for_each_entry(sec, &kelf->sections, list) {
beb603
 		if (!strncmp(sec->name, ".discard", 8) ||
beb603
-		    !strncmp(sec->name, ".rela.discard", 13))
beb603
+		    !strncmp(sec->name, ".rela.discard", 13) ||
beb603
+		    !strncmp(sec->name, ".printk_index", 13))
beb603
 			sec->ignore = 1;
beb603
 	}
beb603
 
beb603
-- 
beb603
2.30.2
beb603