Blob Blame History Raw
From 400ded23da6d998982c0ffa384e0f2a790d78069 Mon Sep 17 00:00:00 2001
From: Song Liu <song@kernel.org>
Date: Fri, 30 Apr 2021 17:16:46 -0700
Subject: [PATCH] create-diff-object: ignore section .printk_index

Signed-off-by: Song Liu <song@kernel.org>
---
 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 82e486f..502922c 100644
--- a/kpatch-build/create-diff-object.c
+++ b/kpatch-build/create-diff-object.c
@@ -2591,7 +2591,8 @@ static void kpatch_mark_ignored_sections(struct kpatch_elf *kelf)
 	/* Ignore any discarded sections */
 	list_for_each_entry(sec, &kelf->sections, list) {
 		if (!strncmp(sec->name, ".discard", 8) ||
-		    !strncmp(sec->name, ".rela.discard", 13))
+		    !strncmp(sec->name, ".rela.discard", 13) ||
+		    !strncmp(sec->name, ".printk_index", 13))
 			sec->ignore = 1;
 	}
 
-- 
2.30.2