diff options
author | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2004-08-26 14:17:10 +0000 |
---|---|---|
committer | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2004-08-26 14:17:10 +0000 |
commit | 94a9a5a20973964c88bf91110d587eaef693f522 (patch) | |
tree | 47bc3d006865c4a9997f3b07fa5fc7294a541187 /ldso/libdl | |
parent | ee55de4929e149035712f805baeb391e121615a4 (diff) |
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?
Diffstat (limited to 'ldso/libdl')
-rw-r--r-- | ldso/libdl/libdl.c | 8 |
1 files changed, 0 insertions, 8 deletions
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; |