From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program Date: Wed, 13 Jul 2011 22:16:36 +0800 Message-ID: <877h7mz2nv.fsf@gnu.org> References: <83y604n6t3.fsf@gnu.org> <83sjqcn5wr.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310567013 12319 80.91.229.12 (13 Jul 2011 14:23:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2011 14:23:33 +0000 (UTC) Cc: Juanma Barranquero , Lars Magne Ingebrigtsen , 2507@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 13 16:23:28 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh0LX-0001DI-8Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jul 2011 16:23:27 +0200 Original-Received: from localhost ([::1]:60460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh0LV-0007tI-KY for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jul 2011 10:23:25 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh0FQ-0006Ua-Fg for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2011 10:17:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qh0FK-0002R9-Lh for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2011 10:17:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh0FK-0002R2-DA for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2011 10:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qh0FJ-0003Ts-R8; Wed, 13 Jul 2011 10:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jason Rumney Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jul 2011 14:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2507 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 2507-submit@debbugs.gnu.org id=B2507.131056661613365 (code B ref 2507); Wed, 13 Jul 2011 14:17:01 +0000 Original-Received: (at 2507) by debbugs.gnu.org; 13 Jul 2011 14:16:56 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh0FE-0003TW-4l for submit@debbugs.gnu.org; Wed, 13 Jul 2011 10:16:56 -0400 Original-Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh0FC-0003TJ-MJ for 2507@debbugs.gnu.org; Wed, 13 Jul 2011 10:16:55 -0400 Original-Received: by pvh18 with SMTP id 18so5081224pvh.3 for <2507@debbugs.gnu.org>; Wed, 13 Jul 2011 07:16:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Mcu+TYH1Fa+iECb8RrIAQXK2wuGHiv3xsvvWhYOFA34=; b=BXFLOaEyPQWYODqKHByQYlnYCKyzgLjHGYlqVmAggPNVFMF4ujsDOoz4EIcIhkWNyy Wls0pMLiLPGzgFgvC0hgkwx1ivuNk3x7Ewp0sqdw21266S1EoUe25q5UlcbLy5m5CCCe 4gj8FRkn2SOmgiOMYE/JXSorMxN2bVGx49OK4= Original-Received: by 10.68.0.163 with SMTP id 3mr1560450pbf.137.1310566608189; Wed, 13 Jul 2011 07:16:48 -0700 (PDT) Original-Received: from home.jasonrumney.net ([180.75.129.32]) by mx.google.com with ESMTPS id x2sm9256277pbn.93.2011.07.13.07.16.43 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Jul 2011 07:16:47 -0700 (PDT) Original-Received: by home.jasonrumney.net (Postfix, from userid 1000) id 319601449; Wed, 13 Jul 2011 22:16:37 +0800 (MYT) In-Reply-To: (Stefan Monnier's message of "Tue, 12 Jul 2011 00:56:27 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 13 Jul 2011 10:17:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48860 Archived-At: Stefan Monnier 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.