Blame 0105-create-diff-object-ignore-section-.rel.llvm.call-gra.patch

54dc0a
From 88bf611ea0a16930a764509a59700cc2418641f0 Mon Sep 17 00:00:00 2001
54dc0a
From: Song Liu <song@kernel.org>
54dc0a
Date: Wed, 1 Mar 2023 15:25:19 -0800
54dc0a
Subject: [PATCH 105/107] create-diff-object: ignore section
54dc0a
 .rel.llvm.call-graph-profile
54dc0a
54dc0a
This section is used by llvm to store profile data. Ignore it in the
54dc0a
livepatch.
54dc0a
54dc0a
Signed-off-by: Song Liu <song@kernel.org>
54dc0a
---
54dc0a
 kpatch-build/create-diff-object.c | 1 +
54dc0a
 1 file changed, 1 insertion(+)
54dc0a
54dc0a
diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c
54dc0a
index e88cb3b..4e3341e 100644
54dc0a
--- a/kpatch-build/create-diff-object.c
54dc0a
+++ b/kpatch-build/create-diff-object.c
54dc0a
@@ -2869,6 +2869,7 @@ static void kpatch_mark_ignored_sections(struct kpatch_elf *kelf)
54dc0a
 		if (!strncmp(sec->name, ".discard", 8) ||
54dc0a
 		    !strncmp(sec->name, ".rela.discard", 13) ||
54dc0a
 		    !strncmp(sec->name, ".llvm_addrsig", 13) ||
54dc0a
+		    !strncmp(sec->name, ".rel.llvm.call-graph-profile", 28) ||
54dc0a
 		    !strncmp(sec->name, ".llvm.", 6))
54dc0a
 			sec->ignore = 1;
54dc0a
 	}
54dc0a
-- 
54dc0a
2.37.3
54dc0a