summaryrefslogtreecommitdiffstats
path: root/ldso
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-15 01:06:42 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-15 01:06:42 +0000
commitfad967c768d96842cb1355a060a4ae2d127f775a (patch)
tree3d616222bea46b16844dbaae7b82414541ada05d /ldso
parent21796dff50a323db9ca4f3ad670a05ed2bffa8cf (diff)
downloaduClibc-alpine-fad967c768d96842cb1355a060a4ae2d127f775a.tar.bz2
uClibc-alpine-fad967c768d96842cb1355a060a4ae2d127f775a.tar.xz
Ronald Wahl writes:
I noticed that dlclose() does not work since libraries loaded with dlopen are not marked as "loaded_file". This breaks apache with dynamic modules. I append a small fix against uClibc-0.9.16.
Diffstat (limited to 'ldso')
-rw-r--r--ldso/libdl/dlib.c1
-rw-r--r--ldso/libdl/libdl.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ldso/libdl/dlib.c b/ldso/libdl/dlib.c
index fbb19223a..6008f8c84 100644
--- a/ldso/libdl/dlib.c
+++ b/ldso/libdl/dlib.c
@@ -149,6 +149,7 @@ void *_dlopen(const char *libname, int flag)
#endif
return NULL;
}
+ tpnt->libtype = loaded_file;
dyn_chain = rpnt = (struct dyn_elf *) malloc(sizeof(struct dyn_elf));
_dl_memset(rpnt, 0, sizeof(*rpnt));
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index fbb19223a..6008f8c84 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -149,6 +149,7 @@ void *_dlopen(const char *libname, int flag)
#endif
return NULL;
}
+ tpnt->libtype = loaded_file;
dyn_chain = rpnt = (struct dyn_elf *) malloc(sizeof(struct dyn_elf));
_dl_memset(rpnt, 0, sizeof(*rpnt));