What does exactly sceKernelLoadExec() do?
It does security checks, extracts the ELF, load program section in memory, resolves stubs, jump to entry point... Am I missing something here?
Thanks in advance :)
sceKernelLoadExec()
sceKernelLoadExec()
The Incredible Bill Gates wrote:The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
-
- Posts: 388
- Joined: Tue Aug 12, 2008 12:46 am
Its really use to execute psp programs. Commonly, its use in Sony Updator, and executing of eboot games. Its use sometimes in VSH mode, exploits (tiff in 2.00-2.80) to execute things from the flash, or the memory stick.
If you take a alook at the m33 sdk samples (3.40 OE source or 4.01m33), you can see how they are used.
If you take a alook at the m33 sdk samples (3.40 OE source or 4.01m33), you can see how they are used.
PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
AFAIK LoadExec only stores the name of the module and parameters in memory and reboots the kernel. After reboot the pspbtcnf.bin modules are executed according to the normal boot process and then finally your module. Other functions are responsible for the actual loading :/
Because if you LoadExec an invalid module it reboots first and only then errors out. (However since 5.00 OFW if you launch an unsigned EBOOT from the XMB it detects immediately and shows an error instead of rebooting and then returning back to VSH to show the error like older firmware. I wonder if this also applies from in-game for new firmware.)
The loading process I assume would be exactly the same as how the pspbtcnf.bin modules are loaded.
Your question should be what does sceKernelLoadModule do as it would be this that invokes the loading/linking etc related processes.
Because if you LoadExec an invalid module it reboots first and only then errors out. (However since 5.00 OFW if you launch an unsigned EBOOT from the XMB it detects immediately and shows an error instead of rebooting and then returning back to VSH to show the error like older firmware. I wonder if this also applies from in-game for new firmware.)
The loading process I assume would be exactly the same as how the pspbtcnf.bin modules are loaded.
Your question should be what does sceKernelLoadModule do as it would be this that invokes the loading/linking etc related processes.