From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Bloat in the Emacs Windows package Date: Thu, 18 Apr 2019 22:08:08 +0300 Message-ID: <83v9zbcesn.fsf@gnu.org> References: <87mukocyze.fsf@russet.org.uk> <83v9zceb3n.fsf@gnu.org> <87tvev1epx.fsf@russet.org.uk> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="149199"; mail-complaints-to="usenet@blaine.gmane.org" Cc: bjourne@gmail.com, emacs-devel@gnu.org To: Phillip Lord Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 18 21:09:07 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hHCPD-000cby-Aw for ged-emacs-devel@m.gmane.org; Thu, 18 Apr 2019 21:09:07 +0200 Original-Received: from localhost ([127.0.0.1]:46014 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHCPC-00029c-96 for ged-emacs-devel@m.gmane.org; Thu, 18 Apr 2019 15:09:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHCOZ-00029G-5x for emacs-devel@gnu.org; Thu, 18 Apr 2019 15:08:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHCOY-00060n-Lq; Thu, 18 Apr 2019 15:08:26 -0400 Original-Received: from [176.228.60.248] (port=4408 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hHCOY-00040K-5O; Thu, 18 Apr 2019 15:08:26 -0400 In-reply-to: <87tvev1epx.fsf@russet.org.uk> (message from Phillip Lord on Thu, 18 Apr 2019 17:05:14 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:235630 Archived-At: > From: Phillip Lord > Cc: bjourne@gmail.com, emacs-devel@gnu.org > Date: Thu, 18 Apr 2019 17:05:14 +0100 > > > I can tell how to do the latter, if you want. It boils down to > > running 2 objcopy commands. > > So many options! > > Again, happy to do whatever can be fitted into my shell script that I > use to build the zip files. Not sure if that's a yes, but anyway... Given an unstripped emacs.exe, you produce the stripped emacs.exe and the separate debug info file like this: objcopy --only-keep-debug emacs.exe emacs.debug strip -g emacs.exe objcopy --add-gnu-debuglink=emacs.debug emacs.exe When unpacked, the emacs.debug file should install into the bin/.debug directory of the Emacs installation. HTH