-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig_RC1.mk
20 lines (17 loc) · 897 Bytes
/
config_RC1.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# tested with NPEA00385
# need too verify if other versions are different
# loader inject: start->main+78
# substitute (text): seg003 start 0x5F7140 length 0x1618 locals 0x90 args 0x0
# shared data: seg021 length 4
TOC = 0x722328 # static throughout
LOADER_INJECT_ADDR = 0x014D4C # nop in main()
LOADER_START_ADDR = 0x5F7150 # 0x5F7140 + 4 + align16
LOADER_END_ADDR = 0x5F71D0 # LOADER_START_ADDR + 0x80
LOADER_SYS_PRX_MODULE_LOAD_ADDR = 0x650544 # cellPrxForUser _sys_process_at_Exitspawn 0x96328741
LOADER_SYS_PRX_MODULE_START_ADDR = 0x6506a4 # cellPrxForUser sys_prx_load_module
# 1414 instructions, around ~375 hooks
HOOK_SHARED_TEXT_BEGIN_ADDR = $(LOADER_END_ADDR)
HOOK_SHARED_TEXT_END_ADDR = 0x5F8758 # HOOK_SHARED_TEXT_BEGIN_ADDR + 0x1588
# 4 bytes
HOOK_SHARED_DATA_BEGIN_ADDR = 0x700BC8
HOOK_SHARED_DATA_END_ADDR = 0x700BCC # HOOK_SHARED_DATA_BEGIN_ADDR + 0x4