Blob Blame History Raw
From 12ee75a821dbfb2ded0752d495d4589e9dd09649 Mon Sep 17 00:00:00 2001
From: Song Liu <song@kernel.org>
Date: Thu, 23 Jan 2025 15:34:35 -0800
Subject: [PATCH 106/118] Ignore symbols like .Ltmp<ID>

Signed-off-by: Song Liu <song@kernel.org>
---
 kpatch-build/create-diff-object.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c
index 16cc1a1..866db33 100644
--- a/kpatch-build/create-diff-object.c
+++ b/kpatch-build/create-diff-object.c
@@ -955,6 +955,11 @@ static void kpatch_compare_correlated_symbol(struct symbol *sym)
 {
 	struct symbol *sym1 = sym, *sym2 = sym->twin;
 
+	if (strncmp(sym->name, ".Ltmp", 5) == 0) {
+		sym->status = SAME;
+		return;
+	}
+
 	if (sym1->sym.st_info != sym2->sym.st_info ||
 	    (sym1->sec && !sym2->sec) ||
 	    (sym2->sec && !sym1->sec))
-- 
2.48.1