[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pdumping "into" the executable

From: Daniel Colascione
Subject: Re: pdumping "into" the executable
Date: Mon, 26 Feb 2018 14:47:38 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 02/26/2018 02:34 PM, Clément Pit-Claudel wrote:
On 2018-02-26 16:10, Tom Tromey wrote:
Maybe instead you could use objcopy to stuff the data into some section
in the executable.  Or, just turn the dump to a C file, then compile it
and do a second link.  Aside from (maybe hypothetical) C compiler
limits, that would be very portable.

Note that having (the option to keep) the dump and the main binary separate can 
be a feature.  For example, Emacs is often installed in a location that's 
writable by root only, and if the dump file can be separate then users can just 
redump in a directory that they can write to, without having to copy the entire 
Emacs binary.

Separate dump files also makes it easier to experiment with multiple dumps.

I don't think anyone is talking about removing the ability to use discrete dump files.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]