about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-02-06 17:57:29 -0500
committerRich Felker <dalias@aerifal.cx>2012-02-06 17:57:29 -0500
commitce4d97e3dc0aaec915f500bc1ef955208a5ef4c2 (patch)
treeac19eef910fc617ec1ad1bf9e421026223cff5c7
parent4ce3cb5cddda7b4ee9643e1f75ee5b8f1f191906 (diff)
downloadmusl-ce4d97e3dc0aaec915f500bc1ef955208a5ef4c2.tar.gz
musl-ce4d97e3dc0aaec915f500bc1ef955208a5ef4c2.tar.xz
musl-ce4d97e3dc0aaec915f500bc1ef955208a5ef4c2.zip
run ctors/dtors for shared objects loaded with dlopen
-rw-r--r--src/ldso/dynlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index ca49f439..01c7f294 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -655,6 +655,7 @@ void *dlopen(const char *file, int mode)
 		p->global = 1;
 	}
 
+	do_init_fini(tail);
 end:
 	pthread_rwlock_unlock(&lock);
 	return p;