|
Michel Lind |
de7e84 |
From bfddae4f2568db2f346e0a8f4b520f84f9865f5d Mon Sep 17 00:00:00 2001
|
|
 |
ec3a16 |
From: Song Liu <song@kernel.org>
|
|
 |
ec3a16 |
Date: Fri, 20 Oct 2023 13:55:04 -0700
|
|
Michel Lind |
de7e84 |
Subject: [PATCH 114/118] kpatch-build: ignore changes in .comment section
|
|
 |
ec3a16 |
|
|
 |
ec3a16 |
.comment section contains compiler version number of compiler(s) used to
|
|
 |
ec3a16 |
generate the object file. With LTO, it is possible that cross file inlining
|
|
 |
ec3a16 |
add/remove items to/from the .comment section. Ignore any changes in the
|
|
 |
ec3a16 |
section in CDO.
|
|
 |
ec3a16 |
|
|
 |
ec3a16 |
Signed-off-by: Song Liu <song@kernel.org>
|
|
Michel Lind |
de7e84 |
(cherry picked from commit 101bfb58f0111b3e4032645125b5b259454750d4)
|
|
 |
ec3a16 |
---
|
|
 |
ec3a16 |
kpatch-build/create-diff-object.c | 1 +
|
|
 |
ec3a16 |
1 file changed, 1 insertion(+)
|
|
 |
ec3a16 |
|
|
 |
ec3a16 |
diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c
|
|
Michel Lind |
de7e84 |
index e7c74e2..d4d8584 100644
|
|
 |
ec3a16 |
--- a/kpatch-build/create-diff-object.c
|
|
 |
ec3a16 |
+++ b/kpatch-build/create-diff-object.c
|
|
Michel Lind |
de7e84 |
@@ -2939,6 +2939,7 @@ static void kpatch_mark_ignored_sections(struct kpatch_elf *kelf)
|
|
 |
ec3a16 |
!strncmp(sec->name, ".rela.discard", 13) ||
|
|
 |
ec3a16 |
!strncmp(sec->name, ".llvm_addrsig", 13) ||
|
|
 |
ec3a16 |
!strncmp(sec->name, ".rel.llvm.call-graph-profile", 28) ||
|
|
 |
ec3a16 |
+ !strncmp(sec->name, ".comment", 8) ||
|
|
 |
ec3a16 |
!strncmp(sec->name, ".llvm.", 6))
|
|
 |
ec3a16 |
sec->ignore = 1;
|
|
Michel Lind |
de7e84 |
|
|
 |
ec3a16 |
--
|
|
Michel Lind |
de7e84 |
2.48.1
|
|
 |
ec3a16 |
|