移除 compact.c 中对 sukisu_compact_find_symbol 函数的可见性修饰符,简化代码结构
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user