summaryrefslogtreecommitdiff
path: root/ldso/libdl
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2004-08-26 14:17:10 +0000
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>2004-08-26 14:17:10 +0000
commit94a9a5a20973964c88bf91110d587eaef693f522 (patch)
tree47bc3d006865c4a9997f3b07fa5fc7294a541187 /ldso/libdl
parentee55de4929e149035712f805baeb391e121615a4 (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.c8
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;