Skip to content

Issues with converting an RPX to an ELF and back #7

@BullyWiiPlaza

Description

@BullyWiiPlaza

wut-tools includes an elf2rpl utility but no rpl2elf utility.

Tools which perform the latter exist in the following:

Chaining together Hykem's rpl2elf and elf2rpl from wut-tools however does not work and yields the following error:

>rpl2elf Foo.rpx Foo.elf
>elf2rpl Foo.elf Foo.rpx
ERROR: Unsupported relocation type 252
ERROR: Unsupported relocation type 253
ERROR: fixRelocations failed.

Questions:

  • Why does Hykem's rpl2elf produce an invalid ELF which cannot be ran on the Wii U? Is there an issue with writing out the relocations?
  • wiiurpxtool can successfully compress and decompress RPX files by itself but decompressing with wiiurpxtool and then re-compressing with elf2rpl does not work with the same error(s) from above. Why does wiiurpxtool succeed at recompressing but elf2rpl does not? It seems like wiiurpxtool also produces a valid RPX once again which can be ran successfully. Which tool is more correct in its behavior?

To clear up the confusion an "official" wut-tools rpl2elf binary or some more insight into the conversion situation would be great.

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