pspdev / prxtool

A simple tool to manipulate Sony PSP(tm) PRX files
Other
64 stars 27 forks source link

Outputting relocated prx doesn't work #6

Open kotcrab opened 3 years ago

kotcrab commented 3 years ago

I'm trying to understand how relocations are applied so I wanted to use prxtool to output relocated lowio.prx from FW 6.61 at 0x88000000. I compiled prxtool and ran the command:

./prxtool -r 2281701376 -e -o lowio.elf lowio.prx

I'm only getting this error message:

PRXTool v1.1 : (c) TyRaNiD 2k6
Built: Sep  3 2021 15:15:23
Loading /home/kotcrab/test/lowio.prx
Error: Invalid memory address for exports (0x0200B518)
Error: Couldn't load prx file structures

Done

Is is possible this error is shown because relocations were applied incorrectly?

sharkwouter commented 9 months ago

@kotcrab is this still relevant?

kotcrab commented 9 months ago

No longer relevant to me if you're asking about that. This tool doesn't handle applying kernel relocations correctly (parsing is okay though from what I remember). ghidra-allegrex should have correct implementation based on this tool code and my own findings.

sharkwouter commented 9 months ago

Thanks for responding, that's really appreciated. I guess I'll keep this open for if someone ever feels like fixing this or runs into it as well. I personally would not be able to fix this.