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