移除 KPM 模块中函数的可见性修饰符,简化代码结构

This commit is contained in:
ShirkNeko
2025-04-01 12:38:06 +08:00
parent aa7fd2fe2b
commit f17e106464
3 changed files with 18 additions and 61 deletions

View File

@@ -36,14 +36,13 @@ struct CompactAddressSymbol {
void* addr;
};
__section(".data") static struct CompactAddressSymbol address_symbol [] = {
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 }
};
__section(".text") unsigned long sukisu_compact_find_symbol(const char* name) {
unsigned long sukisu_compact_find_symbol(const char* name) {
int i;
unsigned long addr;