unsigned long addr;
} *t;
- h = dlopen("./tls_align_dso.so", RTLD_LAZY);
+ h = dlopen("src/functional/tls_align_dso.so", RTLD_LAZY);
if (!h)
t_error("dlopen failed\n");
t = dlsym(h, "t");
if (!t)
t_error("dlsym failed\n");
-
- for (i = 0; i < 4; i++) {
+ else for (i = 0; i < 4; i++) {
if (!t[i].name)
t_error("name is not set for t[%d]\n", i);
if (t[i].addr & (t[i].align-1))