更新 KPM 模块,添加函数节区标记以优化内存布局,并在 Makefile 中调整编译选项以消除类型不匹配警告

This commit is contained in:
ShirkNeko
2025-04-01 10:35:02 +08:00
parent 9b9d72f200
commit f8e456dfcf
3 changed files with 10 additions and 10 deletions

View File

@@ -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;