|
Michel Lind |
de7e84 |
From 47c2a7a7c6f1db13bd2b2176d29c831536337afb Mon Sep 17 00:00:00 2001
|
|
 |
54dc0a |
From: Song Liu <song@kernel.org>
|
|
 |
54dc0a |
Date: Wed, 1 Mar 2023 15:25:19 -0800
|
|
Michel Lind |
de7e84 |
Subject: [PATCH 111/118] 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>
|
|
Michel Lind |
de7e84 |
(cherry picked from commit 88bf611ea0a16930a764509a59700cc2418641f0)
|
|
 |
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
|
|
Michel Lind |
de7e84 |
index 61e1477..e7c74e2 100644
|
|
 |
54dc0a |
--- a/kpatch-build/create-diff-object.c
|
|
 |
54dc0a |
+++ b/kpatch-build/create-diff-object.c
|
|
Michel Lind |
de7e84 |
@@ -2938,6 +2938,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;
|
|
Michel Lind |
de7e84 |
|
|
 |
54dc0a |
--
|
|
Michel Lind |
de7e84 |
2.48.1
|
|
 |
54dc0a |
|