GNU bug report logs - #22086
25.1.50; [PATCH] Integrate the musl hybrid malloc patch for elf systems

Previous Next

Package: emacs;

Reported by: Wolfgang Jenkner <wjenkner <at> inode.at>

Date: Thu, 3 Dec 2015 18:02:01 UTC

Severity: important

Tags: patch

Found in version 25.1.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Wolfgang Jenkner <wjenkner <at> inode.at>
Cc: Eli Zaretskii <eliz <at> gnu.org>, Daniel Colascione <dancol <at> dancol.org>, Rich Felker <dalias <at> aerifal.cx>, 22086 <at> debbugs.gnu.org, Ken Brown <kbrown <at> cornell.edu>
Subject: bug#22086: 25.1.50; [PATCH] Integrate the musl hybrid mallo
Date: Sat, 30 Jan 2016 01:17:21 -0800
[Message part 1 (text/plain, inline)]
The recent emacs-devel thread "Removal of unexec support" has raised the 
priority of this bug, so I redid the patches to separate out Rich Felker's 
contribution, which is so small as to not require copyright papers, and fixed 
several problems I found with the resulting approach. I came up with the 
attached set of patches relative to commit 
ef760b899ad89f941f552ed2d3ac9e45156f3e3c. I would like to commit this patch set 
to the emacs-25 branch soon, and am sending this email to give you (particularly 
Eli) a heads-up about this.

These patches attempt to be more conservative than the other alternatives 
discussed in Bug#22086. They don't try to build a better dumper or remove 
gmalloc.c or anything like that. All they try to do, is to disentangle Emacs 
from glibc malloc internals, by renaming functions whose APIs are no longer 
compatible with glibc, and by using glibc's <malloc.h> rather than guessing what 
it will say, and that sort of thing. The goal is for the resulting Emacs to not 
only port to musl, but also to port to future glibc with less likelihood of trouble.
[0001-Internal-linkage-for-gmalloc-etc.-if-HYBRID_MALLOC.patch (text/x-diff, attachment)]
[0002-Link-temacs-with-gnulib-compiled-with-Demacs.patch (text/x-diff, attachment)]
[0003-unexelf.c-hook-to-support-HYBRID_MALLOC-on-ELF.patch (text/x-diff, attachment)]
[0004-Add-musl-patch-to-support-HYBRID_MALLOC-on-elf-syste.patch (text/x-diff, attachment)]
[0005-Pacify-GCC-on-extern-decls.patch (text/x-diff, attachment)]
[0006-Report-static-heap-usage-on-non-Cygwin-too.patch (text/x-diff, attachment)]
[0007-Pacify-enable-gcc-warnings-when-HYBRID_MALLOC.patch (text/x-diff, attachment)]
[0008-src-alloc.c-Include-sheap.h.patch (text/x-diff, attachment)]
[0009-Include-malloc.h-when-advisable.patch (text/x-diff, attachment)]
[0010-Build-lib-e-.o-only-on-platforms-that-need-it.patch (text/x-diff, attachment)]
[0011-Fix-extern-symbols-defined-and-not-used.patch (text/x-diff, attachment)]
[0012-Shrink-static-heap-a-bit.patch (text/x-diff, attachment)]

This bug report was last modified 9 years and 101 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.