How to Remove/Strip Debug Info of an exe?

delphi package - madRes, madTools, madStrings, ...

How to Remove/Strip Debug Info of an exe?

Postby MarcT » Tue Jan 29, 2008 9:02 am

Hi all, dunno if I'm posting in the right section but let's give it a try, could someone (madshi or?) help me to remove/strip Debug Info of a compiled executable in Delphi? Like Pe Explorer of heaventools.com is doing,

NOTE that I know how to remove the debug info of my project, what I want to do is to be able to remove/strip debug info of any compiled exe.



thx in advance
MarcT
 
Posts: 4
Joined: Sat Dec 29, 2007 8:15 am

Postby madshi » Mon Feb 25, 2008 6:17 pm

Sorry for the very late reply.

You'd need to dig into the PE structure (which is the format in which exes and dlls are stored in) and completely remove the "debug" section. See here for information about how the PE structure works:

http://msdn.microsoft.com/msdnmag/issue ... fault.aspx
http://msdn.microsoft.com/msdnmag/issue ... fault.aspx
madshi
Site Admin
 
Posts: 9431
Joined: Sun Mar 21, 2004 5:25 pm


Return to madBasic

Who is online

Users browsing this forum: No registered users and 1 guest

cron