[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid
bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program
Sun, 01 Mar 2009 07:01:27 +0100
Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (darwin)
Eli Zaretskii <address@hidden> writes:
>> Date: Sat, 28 Feb 2009 13:01:07 +0200
>> From: Eli Zaretskii <address@hidden>
>> strip emacs.exe
>> emacs -Q
>> results in the OS popping an error dialog saying:
>> emacs.exe is not a valid Win32 application
> More info: building Emacs like this:
> make USER_LDFLAGS=-s install
> produces an already stripped emacs.exe that is 8548352 bytes large.
> So this should serve as a stop-gap in case we cannot easily find a
> cure for running `strip' on the dumped Emacs.
> One further idea to ponder is that the fact we now compile with
> DWARF-2 debug info is the reason for the problem with stripping the
> dumped Emacs. Can someone please try rebuilding with "-gstabs"
> instead of "-gdwarf-2 -g3", and see if that produces an emacs.exe
> which can be safely stripped?
I tried the "-gstabs" debug info, but after stripping it didn't work
too. But the output size of that compilation and linking is far smaller.
Result: 12.55 MB (-gstabs) instead of 31.33 MB (-gdwarf2 -g3).
- bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program,
Harald Maier <=