unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Harald Maier <harald@maierh.de>
Cc: 2507@emacsbugs.donarmstrong.com
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	[thread overview]
Message-ID: <uljrpnp03.fsf@gnu.org> (raw)
In-Reply-To: <m23adxye6g.fsf@ate.maierh>

> From: Harald Maier <harald@maierh.de>
> 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.)






  reply	other threads:[~2009-03-01 17:15 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-28 11:01 bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program Eli Zaretskii
2009-02-28 12:14 ` Eli Zaretskii
2009-03-01  6:01   ` Harald Maier
2009-03-01 17:15     ` Eli Zaretskii [this message]
2009-03-02 11:55   ` Juanma Barranquero
2009-03-02 19:05     ` Eli Zaretskii
2011-07-11 13:53 ` Lars Magne Ingebrigtsen
2011-07-11 14:12   ` Juanma Barranquero
2011-07-11 16:03   ` Eli Zaretskii
2011-07-11 16:09     ` Lars Magne Ingebrigtsen
2011-07-11 16:22       ` Eli Zaretskii
2011-07-11 19:36         ` Juanma Barranquero
2011-07-12  4:56           ` Stefan Monnier
2011-07-12 11:03             ` Juanma Barranquero
2011-07-13 14:16             ` Jason Rumney
2013-04-07 16:44               ` Eli Zaretskii
2014-06-04 18:42                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uljrpnp03.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=2507@emacsbugs.donarmstrong.com \
    --cc=harald@maierh.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).