Browse Source

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.

Eric Andersen 23 years ago
parent
commit
fad967c768
2 changed files with 2 additions and 0 deletions
  1. 1 0
      ldso/libdl/dlib.c
  2. 1 0
      ldso/libdl/libdl.c

+ 1 - 0
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));

+ 1 - 0
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));