From b74ceb25aae555570df64fa4d4076272733a9a20 Mon Sep 17 00:00:00 2001 From: Vladimir Chtchetkine Date: Tue, 17 Nov 2009 14:13:38 -0800 Subject: Split libc_debug.so into two .so modules loaded on demand from libc.so This change is intended to eliminate need to replace libc.so with libc_debug.so in order to enablememory allocation debugging. This is also the first step towards implementing extended memoryallocation debugging using emulator's capabilities in monitoring memory access. --- libc/bionic/libc_init_dynamic.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libc/bionic/libc_init_dynamic.c') diff --git a/libc/bionic/libc_init_dynamic.c b/libc/bionic/libc_init_dynamic.c index b479b27..682ebcf 100644 --- a/libc/bionic/libc_init_dynamic.c +++ b/libc/bionic/libc_init_dynamic.c @@ -52,8 +52,6 @@ #include "libc_init_common.h" #include -extern void malloc_debug_init(); - /* We flag the __libc_preinit function as a constructor to ensure * that its address is listed in libc.so's .init_array section. * This ensures that the function is called by the dynamic linker @@ -78,12 +76,11 @@ void __libc_prenit(void) __libc_init_common(elfdata); -#ifdef MALLOC_LEAK_CHECK - /* setup malloc leak checker, requires system properties */ + /* Setup malloc routines accordingly to the environment. + * Requires system properties + */ extern void malloc_debug_init(void); malloc_debug_init(); -#endif - } __noreturn void __libc_init(uintptr_t *elfdata, -- cgit v1.1