Subject: Re: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program

From: Jason Rumney <[email-masked]>
Date: Wed, 13 Jul 2011 22:16:36 +0800

Stefan Monnier <[email-masked]> writes:

>>> The unstripped binary measures 37MB on Windows
>> Or more. Mine is at ~42 MiB unstripped, ~10 MiB stripped (but I
>> doesn't work, of course).
>
> So the stripped version can be compressed *much* further without losing
> any functionality.  Cool!

If you build without debug info in the first place, it does work, at
around the same size. Also if you strip temacs before dumping, it
works. The problem is only in stripping a dumped binary that had
debug info to start with. It seems the strip command removes some info
that Emacs needs to reconstruct the heap from the dumped image.