Page 1 of 1

How to Remove/Strip Debug Info of an exe?

Posted: Tue Jan 29, 2008 9:02 am
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 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

Posted: Mon Feb 25, 2008 6:17 pm
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: ... fault.aspx ... fault.aspx