Michel Lind de7e84
From 12ee75a821dbfb2ded0752d495d4589e9dd09649 Mon Sep 17 00:00:00 2001
Michel Lind de7e84
From: Song Liu <song@kernel.org>
Michel Lind de7e84
Date: Thu, 23 Jan 2025 15:34:35 -0800
Michel Lind de7e84
Subject: [PATCH 106/118] Ignore symbols like .Ltmp<ID>
Michel Lind de7e84
Michel Lind de7e84
Signed-off-by: Song Liu <song@kernel.org>
Michel Lind de7e84
---
Michel Lind de7e84
 kpatch-build/create-diff-object.c | 5 +++++
Michel Lind de7e84
 1 file changed, 5 insertions(+)
Michel Lind de7e84
Michel Lind de7e84
diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c
Michel Lind de7e84
index 16cc1a1..866db33 100644
Michel Lind de7e84
--- a/kpatch-build/create-diff-object.c
Michel Lind de7e84
+++ b/kpatch-build/create-diff-object.c
Michel Lind de7e84
@@ -955,6 +955,11 @@ static void kpatch_compare_correlated_symbol(struct symbol *sym)
Michel Lind de7e84
 {
Michel Lind de7e84
 	struct symbol *sym1 = sym, *sym2 = sym->twin;
Michel Lind de7e84
 
Michel Lind de7e84
+	if (strncmp(sym->name, ".Ltmp", 5) == 0) {
Michel Lind de7e84
+		sym->status = SAME;
Michel Lind de7e84
+		return;
Michel Lind de7e84
+	}
Michel Lind de7e84
+
Michel Lind de7e84
 	if (sym1->sym.st_info != sym2->sym.st_info ||
Michel Lind de7e84
 	    (sym1->sec && !sym2->sec) ||
Michel Lind de7e84
 	    (sym2->sec && !sym1->sec))
Michel Lind de7e84
-- 
Michel Lind de7e84
2.48.1
Michel Lind de7e84