From e863cce57bff6cb795e6aad745ddf6235bca21ce Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 26 Oct 2016 13:28:28 +0200 Subject: malloc: Remove malloc_get_state, malloc_set_state [BZ #19473] After the removal of __malloc_initialize_hook, newly compiled Emacs binaries are no longer able to use these interfaces. malloc_get_state is only used during the Emacs build process, so we provide a stub implementation only. Existing Emacs binaries will not call this stub function, but still reference the symbol. The rewritten tst-mallocstate test constructs a dumped heap which should approximates what existing Emacs binaries pass to glibc malloc. --- malloc/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'malloc/Makefile') diff --git a/malloc/Makefile b/malloc/Makefile index d79d66f61f..b8efcd68bc 100644 --- a/malloc/Makefile +++ b/malloc/Makefile @@ -69,6 +69,9 @@ $(objpfx)tst-malloc-thread-exit: $(shared-thread-library) $(objpfx)tst-malloc-thread-fail: $(shared-thread-library) $(objpfx)tst-malloc-fork-deadlock: $(shared-thread-library) +# Export the __malloc_initialize_hook variable to libc.so. +LDFLAGS-tst-mallocstate = -rdynamic + # These should be removed by `make clean'. extra-objs = mcheck-init.o libmcheck.a -- cgit v1.2.3