Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(question) Reverse Engineering and DWARF Information #31

Closed
Ezzz-dev opened this issue Jun 20, 2018 · 1 comment
Closed

(question) Reverse Engineering and DWARF Information #31

Ezzz-dev opened this issue Jun 20, 2018 · 1 comment

Comments

@Ezzz-dev
Copy link

I've a binary file that comes with DWARF information and the RE code is almost fully compilable but it's an ELF32 file, I'm wondering if the odds to achieve something like this is possible having DWARF information and source file names ?

I'm using IDA 7.0 + HexRays to do this.

@ghost
Copy link

ghost commented Jun 21, 2018

Compiling the decompiled output is only 10% of the work. Afterwards that you have to annotate stack references, fix subtraction in pointers, etc. Seeing as it isn't a Windows binary, I don't think you'll have much trouble with calling conventions. One of the things I did was made sure to use the same compiler used originally, people seem to overlook the value in comparing assembly output for correct decompilation. Again, not sure how much of this would apply to your case.

IDA is one of the best out there, but I would also consider checking certain functions in other decompilers as well. Some tools may output a specific piece of code better than others.

If you wanted to achieve something in the ball park of Devilution, it definitely sounds possible giving the DWARF information. The real question is how much time are you willing to spend, and how much code is there?

@ghost ghost closed this as completed Jun 21, 2018
nomdenom pushed a commit to nomdenom/devilution that referenced this issue Sep 13, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant