Skip to content

Outputting relocated prx doesn't work #6

Open

Description

@kotcrab

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?

Activity

  1. sharkwouter commented on Jan 9, 2024

    @sharkwouter
    Member

    @kotcrab is this still relevant?

  2. kotcrab commented on Jan 9, 2024

    @kotcrab
    Author

    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.

  3. sharkwouter commented on Jan 9, 2024

    @sharkwouter
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions