Blob Blame History Raw
From 101bfb58f0111b3e4032645125b5b259454750d4 Mon Sep 17 00:00:00 2001
From: Song Liu <song@kernel.org>
Date: Fri, 20 Oct 2023 13:55:04 -0700
Subject: [PATCH 109/112] kpatch-build: ignore changes in .comment section

.comment section contains compiler version number of compiler(s) used to
generate the object file. With LTO, it is possible that cross file inlining
add/remove items to/from the .comment section. Ignore any changes in the
section in CDO.

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 4e3341e..4ce0766 100644
--- a/kpatch-build/create-diff-object.c
+++ b/kpatch-build/create-diff-object.c
@@ -2870,6 +2870,7 @@ static void kpatch_mark_ignored_sections(struct kpatch_elf *kelf)
 		    !strncmp(sec->name, ".rela.discard", 13) ||
 		    !strncmp(sec->name, ".llvm_addrsig", 13) ||
 		    !strncmp(sec->name, ".rel.llvm.call-graph-profile", 28) ||
+		    !strncmp(sec->name, ".comment", 8) ||
 		    !strncmp(sec->name, ".llvm.", 6))
 			sec->ignore = 1;
 	}
-- 
2.45.1