From aa7fd2fe2be77905d2d7453cae5e36aad316e84e Mon Sep 17 00:00:00 2001 From: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com> Date: Tue, 1 Apr 2025 12:26:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20compact.c=20=E4=B8=AD?= =?UTF-8?q?=E5=AF=B9=20sukisu=5Fcompact=5Ffind=5Fsymbol=20=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E5=8F=AF=E8=A7=81=E6=80=A7=E4=BF=AE=E9=A5=B0?= =?UTF-8?q?=E7=AC=A6=EF=BC=8C=E7=AE=80=E5=8C=96=E4=BB=A3=E7=A0=81=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/kpm/compact.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/kpm/compact.c b/kernel/kpm/compact.c index 1b2481a9..3caa17f5 100644 --- a/kernel/kpm/compact.c +++ b/kernel/kpm/compact.c @@ -36,14 +36,14 @@ struct CompactAddressSymbol { void* addr; }; -__visible __section(".data") static struct CompactAddressSymbol address_symbol [] = { +__section(".data") static struct CompactAddressSymbol address_symbol [] = { { "kallsyms_lookup_name", &kallsyms_lookup_name }, { "compact_find_symbol", &sukisu_compact_find_symbol }, { "is_run_in_sukisu_ultra", (void*)1 } }; -__visible __section(".text") unsigned long sukisu_compact_find_symbol(const char* name) { +__section(".text") unsigned long sukisu_compact_find_symbol(const char* name) { int i; unsigned long addr;