更新 KPM 模块,调整函数节区标记以优化内存布局,并添加用户数据复制功能
This commit is contained in:
@@ -42,7 +42,7 @@ __visible __section(".data") static struct CompactAddressSymbol address_symbol [
|
||||
{ "is_run_in_sukisu_ultra", (void*)1 }
|
||||
};
|
||||
|
||||
__visible unsigned long sukisu_compact_find_symbol(const char* name) {
|
||||
__visible __section(".text") unsigned long sukisu_compact_find_symbol(const char* name) {
|
||||
int i;
|
||||
unsigned long addr;
|
||||
|
||||
@@ -62,5 +62,8 @@ __visible unsigned long sukisu_compact_find_symbol(const char* name) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
__section(".text") long copy_to_user(void __user *to, const void *from, unsigned long n) {
|
||||
return __copy_to_user(to, from, n);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(sukisu_compact_find_symbol);
|
||||
|
||||
Reference in New Issue
Block a user