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

From: Eli Zaretskii <[email-masked]>
Date: Mon, 02 Mar 2009 21:05:57 +0200

> Date: Mon, 2 Mar 2009 12:55:14 +0100
> From: Juanma Barranquero <[email-masked]>
> 
> On Sat, Feb 28, 2009 at 13:14, Eli Zaretskii <[email-masked]> wrote:
> 
> > a cure for running `strip' on the dumped Emacs.
> 
> AFAICS, the problem is not limited to the dumped Emacs. A stripped
> temacs.exe fails in the same way.

Probably because temacs.exe is a product of dumping temacs.bin.  See
src/makefile.w32-in.  Here's the relevant fragment from a typical
build session:

  "../nt/oo-spd/i386/addsection" "oo-spd/i386/temacs.bin" "oo-spd/i386/temacs.exe" EMHEAP 16
  Dumping from oo-spd/i386/temacs.bin
            to oo-spd/i386/temacs.exe