代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/kpatch 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From bad5b93c1fa85cc4b71533284064fd0af1bab464 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Fri, 24 May 2024 14:45:55 +0800
Subject: [PATCH] ignore initcall5 section to adapt 6.6 kernel
---
kpatch-build/create-diff-object.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c
index f1dfc1d..4c029ae 100644
--- a/kpatch-build/create-diff-object.c
+++ b/kpatch-build/create-diff-object.c
@@ -2035,8 +2035,12 @@ static void kpatch_include_force_elements(struct kpatch_elf *kelf)
int kpatch_include_new_static_var(struct kpatch_elf *kelf)
{
struct symbol *sym;
+ char *initcall_prefix = "__initcall__kmod";
list_for_each_entry(sym, &kelf->symbols, list) {
+ if (strncmp(sym->name, initcall_prefix, strlen(initcall_prefix)) == 0) {
+ continue;
+ }
if (sym->status == NEW &&
sym->bind == STB_LOCAL &&
(sym->type == STT_OBJECT ||
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。