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

Add support for decompilation of Mach-O files #11

Closed
s3rvac opened this issue Jan 14, 2018 · 2 comments
Closed

Add support for decompilation of Mach-O files #11

s3rvac opened this issue Jan 14, 2018 · 2 comments

Comments

@s3rvac
Copy link
Member

s3rvac commented Jan 14, 2018

RetDec has a basic support for decompilation of Mach-O files. However, when I try to decompile a Mach-O file via the IDA plugin (e.g. this one), the plugin fails with the following error:

Retargetable Decompiler version 0.4 cannot decompile this input file.

IDA loads the input Mach-O file just fine. It would be nice if the IDA plugin supported the same file formats as RetDec.

@Maroc-OS
Copy link
Contributor

Maroc-OS commented Jul 6, 2018

The plugin actually is a mass and need a lot of work, it works sometimes and give strange errors must of times. like decompiling a PE library says always function must be selected. am on macOS btw.

For Mach-O i started working on it and ida crash's with exception start is greater then end.

followed the problem and found that it comes from :

void ConfigGenerator::generateFunctions()
fnc->end_ea == 0 when printing it.

fixed that part (ugly hack to follow fix ups) and come to same error on function :

void ConfigGenerator::generateSegmentsAndGlobals()
seg->end_ea == 0 when printing it.

File : config_generator.cpp

@Maroc-OS
Copy link
Contributor

Maroc-OS commented Jul 7, 2018

Sorry I found that I was using normal plugin as ida pro 64 bit ☝️.

Support for ARM is there already. Should I send a patch? I saw my pull requests even not reviewed or commented.

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

No branches or pull requests

2 participants