reduce some wasted space in dso structure
[musl] / src / ldso / dynlink.c
index ca49f43..eda0046 100644 (file)
@@ -47,9 +47,9 @@ struct dso
        size_t map_len;
        dev_t dev;
        ino_t ino;
-       int global;
-       int relocated;
-       int constructed;
+       char global;
+       char relocated;
+       char constructed;
        struct dso **deps;
        char *name;
        char buf[];
@@ -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;