run ctors/dtors for shared objects loaded with dlopen
authorRich Felker <dalias@aerifal.cx>
Mon, 6 Feb 2012 22:57:29 +0000 (17:57 -0500)
committerRich Felker <dalias@aerifal.cx>
Mon, 6 Feb 2012 22:57:29 +0000 (17:57 -0500)
src/ldso/dynlink.c

index ca49f43..01c7f29 100644 (file)
@@ -655,6 +655,7 @@ void *dlopen(const char *file, int mode)
                p->global = 1;
        }
 
                p->global = 1;
        }
 
+       do_init_fini(tail);
 end:
        pthread_rwlock_unlock(&lock);
        return p;
 end:
        pthread_rwlock_unlock(&lock);
        return p;