How to Remove/Strip Debug Info of an exe?

delphi package - madRes, madTools, madStrings, ...
Post Reply
MarcT
Posts: 4
Joined: Sat Dec 29, 2007 8:15 am

How to Remove/Strip Debug Info of an exe?

Post by MarcT »

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
madshi
Site Admin
Posts: 10338
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

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
Post Reply