avast / avast/retdec

Add support for decompiling PowerPC relocatables in the REL file format

Open
#67 6 comments 0 reactions 0 assignees View on GitHub
C-fileformat D-DIY new-feature
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I have a small powerpc application, which has most of its actual logic in a relocatable file and links that during runtime, similar as a DLL on Windows.

http://www.metroid2002.com/retromodding/wiki/REL_(File_Format)
http://wiki.tockdom.com/wiki/REL_(File_Format)

Is there any way retdec can decompile this REL file, too? It contains mostly code.
Can I tell retdec to force decompile this as raw file, treating everything as assembler code?

`./decompile.sh -a powerpc -e big -f raw ../../compil/StaticR.rel` tells me "raw" would be an unsupported format? Why? According to the readme, retdec supports raw machine code ...

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with decompile.sh and the README sections covering raw machine-code input, then inspect how the PowerPC and REL inputs in the reported command are classified. Done means the requested REL support or raw-input behavior is defined, implemented, and demonstrated with StaticR.rel or an equivalent test case.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers, reverse-engineering
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.