From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program Date: Sun, 01 Mar 2009 19:15:24 +0200 Message-ID: References: Reply-To: Eli Zaretskii , 2507@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1235929536 24604 80.91.229.12 (1 Mar 2009 17:45:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Mar 2009 17:45:36 +0000 (UTC) Cc: 2507@emacsbugs.donarmstrong.com To: Harald Maier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 01 18:46:52 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LdpkT-00012H-HM for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Mar 2009 18:46:45 +0100 Original-Received: from localhost ([127.0.0.1]:55760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ldpj8-0005LN-G8 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Mar 2009 12:45:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdphX-0004cq-Q8 for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2009 12:43:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdphW-0004c8-B7 for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2009 12:43:43 -0500 Original-Received: from [199.232.76.173] (port=49600 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdphW-0004bz-02 for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2009 12:43:42 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56478) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LdphV-0004aa-Ay for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2009 12:43:41 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n21HhcKj020308; Sun, 1 Mar 2009 09:43:39 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n21HP5Cr015696; Sun, 1 Mar 2009 09:25:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Sun, 01 Mar 2009 17:25:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2507 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by 2507-submit@emacsbugs.donarmstrong.com id=B2507.123592774414226 (code B ref 2507); Sun, 01 Mar 2009 17:25:05 +0000 Original-Received: (at 2507) by emacsbugs.donarmstrong.com; 1 Mar 2009 17:15:44 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mtaout2.012.net.il (mtaout2.012.net.il [84.95.2.4]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n21HFfil014220 for <2507@emacsbugs.donarmstrong.com>; Sun, 1 Mar 2009 09:15:42 -0800 Original-Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KFU006007EUPD00@i_mtaout2.012.net.il> for 2507@emacsbugs.donarmstrong.com; Sun, 01 Mar 2009 19:16:12 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.167.119]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KFU00EWZ7YKAEV0@i_mtaout2.012.net.il>; Sun, 01 Mar 2009 19:15:57 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 01 Mar 2009 12:43:43 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25879 Archived-At: > From: Harald Maier > Cc: 2507@emacsbugs.donarmstrong.com > Date: Sun, 01 Mar 2009 07:01:27 +0100 > > > 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. Thanks for trying. > But the output size of that compilation and linking is far smaller. > > Result: 12.55 MB (-gstabs) instead of 31.33 MB (-gdwarf2 -g3). This is expected: DWARF-2 produces much more voluminous debug information (and thus enables several useful debugging features in GDB). Btw, the 32MB executable is only that large on disk; when you invoke it, the debug info is not read at all, so the memory footprint of a running Emacs is not affected. The debug info is read only by GDB when you run Emacs under the debugger. (I'm not saying that we should ignore this problem, just that it only matters for disk space and the size of the tarball.)