Hi Kurt,

On Sat, Jul 25, 2009 at 02:29:23PM +0200, Kurt Roeckx wrote:
> On Sat, Jul 25, 2009 at 12:08:05PM +0200, John Wright wrote:
> > I'm working on getting makedumpfile ready to upload to Debian.  The
> > upstream Makefile builds makedumpfile statically, so that it can be
> > easily included in an initramfs.  The only library it needs that isn't
> > available statically now is libdw.  I notice you removed the static
> > library in version 0.141-1; would it be possible to bring it back?
> 
> Note that libdw1 contains a whole bunch of shared libraries which
> can be dynamicly loaded, and you probably need atleast one of
> them.  Upstream does not provide them staticly.
> 
> I suggest you look at doing this with the shared version instead,
> I don't see an advantage of doing it staticly.

makedumpfile's purpose is to dump the memory of a crashed kernel (from a
newly kexec'd "crash kernel"), ignoring user memory and pages of zeros.
It's possible to do this after booting the crash kernel through a normal
init process, but to avoid needing to pre-allocate a lot of memory for
the crash kernel, it's better if makedumpfile can run in the initramfs.
For that, we want a statically linked binary (or else we have to copy
the libz, libelf, and libdw shared libraries also into the initramfs).
It works just fine linked against libdw.a.

-- 
John Wright <j...@debian.org>



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to