forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

decompile elf file

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
NoobWithBoobs



Joined: 16 Jul 2008
Posts: 23

PostPosted: Thu Jul 17, 2008 2:23 pm    Post subject: decompile elf file Reply with quote

seeing as you can compile a bunch of files into an .elf,is there a program to seperate/decompile an elf file back to all those individual files?
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Jul 17, 2008 2:31 pm    Post subject: Re: decompile elf file Reply with quote

NoobWithBoobs wrote:
seeing as you can compile a bunch of files into an .elf,is there a program to seperate/decompile an elf file back to all those individual files?


I ate a chicken burger and some fries today. Is there any way I can throw up the original ingredients in the same form they were before I ate them? No? Didn't think so. :)

In much same manner, there's no way to decompile a program back into the original C/C++ and h files. All you get is vomit (assembly language).

Pretty graphic, but it's an apt description. If you could recover the original files by decompiling, reverse engineering would be simple, not the art form it really is.
Back to top
View user's profile Send private message AIM Address
LBGSHI



Joined: 07 Aug 2006
Posts: 136

PostPosted: Thu Jul 17, 2008 10:51 pm    Post subject: Reply with quote

Heh, there is Hanimar's disassembler (PS2Dis), which will, as J.F noted, vomit a mass of ASM at you, and for other brands of executables, there have been various attempts at "decompilers", all of which have been erratic and only partially functional (and I've never seen one produce code that would recompile, let alone recompile into a functional product).
_________________
I may be lazy, but I can...zzzZZZzzzZZZzzz...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Thu Jul 17, 2008 11:47 pm    Post subject: Reply with quote

IDA Pro is by far the best disassembler I've seen so far: http://www.hex-rays.com/idapro/

Unfortunately, it's quite expensive.
Back to top
View user's profile Send private message
LBGSHI



Joined: 07 Aug 2006
Posts: 136

PostPosted: Fri Jul 18, 2008 12:06 am    Post subject: Reply with quote

Yes, it's true that IDA Pro is great. However, I believe only the Advanced version includes MIPS r5900l support, and if I remember correctly, Advanced costs in the thousands.
_________________
I may be lazy, but I can...zzzZZZzzzZZZzzz...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Fri Jul 18, 2008 10:41 pm    Post subject: Reply with quote

As for decompiling, this looks very promising: http://www.hex-rays.com/decompiler.shtml

Though it currently only supports 32-bit x86 code.
Back to top
View user's profile Send private message
NoobWithBoobs



Joined: 16 Jul 2008
Posts: 23

PostPosted: Fri Aug 01, 2008 8:00 am    Post subject: Reply with quote

wow j.f.,
i dont know if i should be offended,but that was a pretty funny analogy
Back to top
View user's profile Send private message
LBGSHI



Joined: 07 Aug 2006
Posts: 136

PostPosted: Fri Aug 01, 2008 1:30 pm    Post subject: Reply with quote

I think that was J.F. being cordial :)
_________________
I may be lazy, but I can...zzzZZZzzzZZZzzz...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
stinkee2



Joined: 04 Jan 2009
Posts: 8

PostPosted: Sun Jan 04, 2009 2:39 pm    Post subject: I have IDA pro Advanced v 5.0 Reply with quote

I registered just to say that I have Ida Pro Advanced 5 and I would like to help...

...if possible
Back to top
View user's profile Send private message
anmabagima



Joined: 01 Oct 2009
Posts: 96

PostPosted: Wed Dec 30, 2009 2:11 am    Post subject: Reply with quote

Hi,

are you still part of this forum ? If this is tha case would you be able to help in decompile PSP .O files into somehow readable code, asm or what ever, as I've completely deleted my cpp sources due to an typo in my makefile.

Thanks..
Back to top
View user's profile Send private message
Ozqi



Joined: 23 Jan 2010
Posts: 4
Location: Sweden

PostPosted: Mon Jan 25, 2010 5:30 pm    Post subject: Reply with quote

anmabagima wrote:
Hi,

are you still part of this forum ? If this is tha case would you be able to help in decompile PSP .O files into somehow readable code, asm or what ever, as I've completely deleted my cpp sources due to an typo in my makefile.

Thanks..


I think you should be looking into file recovery programs. Never tried one myself but I bet there's a ton out there that are easy to use. Download one and hope that the sectors of your hdd that once contained the files haven't been overwritten. If they're still there this will be an extremely easier way to solve your problem than trying to decompile your elf.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group