In the thread around http://permalink.gmane.org/gmane.emacs.devel/182469 Rich Felker announced that he had found that a small addition to unexelf.c allowed emacs to extend its hybrid malloc implementation (previously only used for cygwin) to musl libc, but without using features specific to that malloc implementation. A corresponding patch was tested in the "Alpine Linux" distribution, see http://git.alpinelinux.org/cgit/aports/plain/testing/emacs/musl.patch?id=d6f211ec868df4657c745b8ba2bae77b2a7fb7f6 This patch series proposes the relevant part of that change and adds some (rather trivial) groundwork to make it reliably work on all systems which use unexelf.c for dumping. Personally, I've been using hybrid malloc on top of the libc malloc (jemalloc) on FreeBSD 10 for several months now without problems. I also tested it with other malloc libraries, in particular some of those derived from Doug Lea's malloc. It also works on GNU/Linux, on top of glibc. This might be of some interest as, IIRC, some glibc people were not too happy about keeping malloc_get_state and stuff. If you get an error about exceeding "static heap size" during dumping just bump STATIC_HEAP_SIZE in src/sheap.c a bit. If the commit messages in the following patches don't explain enough, please ask. Also, please apply the patch from http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22085 beforehand.