From 94a9a5a20973964c88bf91110d587eaef693f522 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Thu, 26 Aug 2004 14:17:10 +0000 Subject: Let ldso find libc's malloc function and set _dl_malloc_function. This removes some crap in libdl.c(and future libs which needs to access ldso functions). What do you think? --- ldso/libdl/libdl.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'ldso/libdl/libdl.c') diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index 8199a7598..837ce0dc9 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -144,14 +144,6 @@ void *dlopen(const char *libname, int flag) from = (ElfW(Addr)) __builtin_return_address(0); - /* Have the dynamic linker use the regular malloc function now */ - if (!dl_init) { - dl_init++; -#if defined (__LIBDL_SHARED__) - _dl_malloc_function = malloc; -#endif - } - /* Cover the trivial case first */ if (!libname) return _dl_symbol_tables; -- cgit v1.2.3