[PATCH] Re: stripping of DLLs?

Kevin Kofler kevin.kofler at chello.at
Mon Jun 22 19:42:55 UTC 2009


Erik van Pienbroek wrote:
> Please note that the current version of mingw32-nsis is compiled without
> debug symbols (the mingw bits) so no mingw files are added to the
> -debuginfo subpackage right now.

I know, this is intentionally disabled right now because we didn't have
support for extracting debuginfo and so the debuginfo bloats the
installers.

That said, I doubt the debuginfo extraction does the right thing (if it
works at all) on the NSIS stubs: they're basically EXE files, but without
the extension. NSIS builds the setup.exe by taking the stub, changing a few
bytes in the header and appending the payload to it. So will the extracted
debuginfo from the stubs be of any use?

Another reason I disabled the debugging information for the stubs is that
the above process gets confused by the presence of debugging sections in
the stub: with those sections present, the header editing generates corrupt
executables which crash or trigger errors in tools like UPX or objdump (and
may also have other ill side effects). If debuginfo extraction works, that
would of course solve this particular issue, as well as the bloat issue.

        Kevin Kofler




More information about the mingw mailing list