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: Tue, 23 Apr 2019 08:37:51 +0300 Message-ID: <83ef5t5ljk.fsf@gnu.org> References: <87mukocyze.fsf@russet.org.uk> <83v9zceb3n.fsf@gnu.org> <87tvev1epx.fsf@russet.org.uk> <83v9zbcesn.fsf@gnu.org> <87a7gnypsx.fsf@russet.org.uk> <83sguecxth.fsf@gnu.org> <87r29t22pk.fsf@russet.org.uk> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="85098"; mail-complaints-to="usenet@blaine.gmane.org" Cc: bjourne@gmail.com, emacs-devel@gnu.org To: phillip.lord@russet.org.uk (Phillip Lord) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 23 07:39:21 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 1hIo9H-000M04-V6 for ged-emacs-devel@m.gmane.org; Tue, 23 Apr 2019 07:39:20 +0200 Original-Received: from localhost ([127.0.0.1]:48398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIo9G-0006uF-Qi for ged-emacs-devel@m.gmane.org; Tue, 23 Apr 2019 01:39:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIo9A-0006tS-Cg for emacs-devel@gnu.org; Tue, 23 Apr 2019 01:39:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIo7z-0004Cf-4V; Tue, 23 Apr 2019 01:37:59 -0400 Original-Received: from [176.228.60.248] (port=3877 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hIo7y-00035l-Ks; Tue, 23 Apr 2019 01:37:58 -0400 In-reply-to: <87r29t22pk.fsf@russet.org.uk> (phillip.lord@russet.org.uk) 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:235796 Archived-At: > From: phillip.lord@russet.org.uk (Phillip Lord) > Cc: bjourne@gmail.com, emacs-devel@gnu.org > Date: Mon, 22 Apr 2019 21:40:39 +0100 > > >> objcopy --only-keep-debug emacs.exe emacs.debug > >> strip -g emacs.exe > >> strip -g emacs-26.2.exe > >> objcopy --add-gnu-debuglink=emacs.debug emacs.exe > >> objcopy --add-gnu-debuglink=emacs.debug emacs-26.2.exe > > > > There is no magic: if emacs.exe and emacs-26.2.exe are two separate > > files (not hard links to the same file data), then yes, you will need > > the additional commands above. Sorry for not saying that explicitly. > > >From what you are saying, emacs.exe and emacs-26.2.exe *will be* hard > links before they are zipped, but not after. If they are hard links before the above commands, you don't need separate commands for each executable. When unzipped, they will both have the same debuglink section.