lab313ru / ghidra_psx_ldr

Sony Playstation PSX executables loader for GHIDRA
233 stars 31 forks source link

Attempt to reconstruct sections #8

Closed tomsons26 closed 4 years ago

tomsons26 commented 5 years ago

While unlike the CPE the final PSX EXE doesn't contain the section info in the header it does however have code referencing it. If you check a binary with a linker map you can find these references. SN_ENTRY_POINT in SNMAIN.C in the PSX SDK references these section starts and ends for example. Per the same code gp is set to .sdata section start location.

This could possibly be a accompanying java or python script with the loader as the section reference points could be different per developer. A option to reconstruct sections from a list? should someone have the matching linker map could be useful too.

lab313ru commented 4 years ago

Related: https://github.com/lab313ru/ghidra_psx_ldr/issues/9

lab313ru commented 4 years ago

Fixed via: 445a7a8e7b0ad314cf49424cd6c698ace627dc03.