diff --git a/patches/0023-lookup.c-fix-local-bind-check.patch b/patches/0023-lookup.c-fix-local-bind-check.patch new file mode 100644 index 0000000000000000000000000000000000000000..69f67a9691f26608b561a0f0201297e1bd876559 --- /dev/null +++ b/patches/0023-lookup.c-fix-local-bind-check.patch @@ -0,0 +1,28 @@ +From 702177e4c127a99ce004cc1a8ca4e1c080a48d94 Mon Sep 17 00:00:00 2001 +From: Wardenjohn +Date: Wed, 25 Jun 2025 09:46:18 +0800 +Subject: [PATCH] lookup.c: fix local bind check + +Fix the symbol bind check. + +Signed-off-by: Wardenjohn +--- + kpatch-build/lookup.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kpatch-build/lookup.c b/kpatch-build/lookup.c +index bd2b732..8eb5599 100644 +--- a/kpatch-build/lookup.c ++++ b/kpatch-build/lookup.c +@@ -172,7 +172,7 @@ static bool file_has_locals(struct symbol *file_sym, struct list_head *sym_list) + list_for_each_entry_continue(sym, sym_list, list) { + if (sym->type == STT_FILE) + break; +- if (sym->type != STB_LOCAL) ++ if (sym->bind != STB_LOCAL) + continue; + if (maybe_discarded_sym(sym->name)) + continue; +-- +2.37.3 +