From a79ebac2bf9e1d9e01b8641f1139c5b812a846d6 Mon Sep 17 00:00:00 2001 From: caixiaomeng Date: Fri, 28 Feb 2025 09:47:06 +0800 Subject: [PATCH] fix rela.init.text section changed due to __BTF_id_ symbol changed --- kpatch-build/create-diff-object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index d5126f8..2dceef9 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -428,7 +428,7 @@ static int kpatch_mangled_strcmp(char *s1, char *s2) if (strstr(s1, ".str1.")) return strcmp(s1, s2); - if (!strncmp(s1, "__UNIQUE_ID_", 12)) + if (!strncmp(s1, "__UNIQUE_ID_", 12) || !strncmp(s1, "__BTF_ID_", 9)) return __kpatch_unique_id_strcmp(s1, s2); #ifdef __riscv -- 2.33.0