Blame 0109-kpatch-build-ignore-changes-in-.comment-section.patch

ec3a16
From 101bfb58f0111b3e4032645125b5b259454750d4 Mon Sep 17 00:00:00 2001
ec3a16
From: Song Liu <song@kernel.org>
ec3a16
Date: Fri, 20 Oct 2023 13:55:04 -0700
ec3a16
Subject: [PATCH 2/3] 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>
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
ec3a16
index 4e3341e..4ce0766 100644
ec3a16
--- a/kpatch-build/create-diff-object.c
ec3a16
+++ b/kpatch-build/create-diff-object.c
ec3a16
@@ -2870,6 +2870,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;
ec3a16
 	}
ec3a16
-- 
ec3a16
2.41.0
ec3a16