更新 KPM 模块,添加函数节区标记以优化内存布局,并在 Makefile 中调整编译选项以消除类型不匹配警告
This commit is contained in:
@@ -36,13 +36,13 @@ struct CompactAddressSymbol {
|
||||
void* addr;
|
||||
};
|
||||
|
||||
static struct CompactAddressSymbol address_symbol [] = {
|
||||
__visible __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 }
|
||||
};
|
||||
|
||||
unsigned long sukisu_compact_find_symbol(const char* name) {
|
||||
__visible unsigned long sukisu_compact_find_symbol(const char* name) {
|
||||
int i;
|
||||
unsigned long addr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user