12 Star 7 Fork 49

src-openEuler/kpatch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0051-fix-rela.init.text-section-changed-due-to-__BTF_id_-changed.patch 844 Bytes
一键复制 编辑 原始数据 按行查看 历史
From a79ebac2bf9e1d9e01b8641f1139c5b812a846d6 Mon Sep 17 00:00:00 2001
From: caixiaomeng <caixiaomeng2@huawei.com>
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/kpatch.git
git@gitee.com:src-openeuler/kpatch.git
src-openeuler
kpatch
kpatch
master

搜索帮助