devkitPro / wut-tools

GNU General Public License v2.0
11 stars 12 forks source link

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

Open BullyWiiPlaza opened 3 years ago

BullyWiiPlaza commented 3 years ago

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:

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

asiekierka commented 3 years ago

What's the use case, from the perspective of homebrew development, of converting an RPX to an ELF?

BullyWiiPlaza commented 3 years ago

@asiekierka The use case is for example to convert a game RPX/RPL to an ELF for easier analysis or modification for game modding purposes. Also in terms of homebrew if you can't recompile an RPX/RPL you may still be able to adjust it via editing the ELF file either because the dependent libraries are gone/undefined or because you don't have the source code in general.