projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
handle 0 return of crypt
[libc-test]
/
src
/
functional
/
tls_align_dlopen.c
diff --git
a/src/functional/tls_align_dlopen.c
b/src/functional/tls_align_dlopen.c
index
64517e1
..
77a7b93
100644
(file)
--- a/
src/functional/tls_align_dlopen.c
+++ b/
src/functional/tls_align_dlopen.c
@@
-12,19
+12,19
@@
int main()
unsigned long addr;
} *t;
unsigned long addr;
} *t;
- h = dlopen("
.
/tls_align_dso.so", RTLD_LAZY);
+ h = dlopen("
src/functional
/tls_align_dso.so", RTLD_LAZY);
if (!h)
if (!h)
- error("dlopen failed\n");
+
t_
error("dlopen failed\n");
t = dlsym(h, "t");
if (!t)
t = dlsym(h, "t");
if (!t)
- error("dlsym failed\n");
+
t_
error("dlsym failed\n");
for (i = 0; i < 4; i++) {
if (!t[i].name)
for (i = 0; i < 4; i++) {
if (!t[i].name)
- error("name is not set for t[%d]\n", i);
+
t_
error("name is not set for t[%d]\n", i);
if (t[i].addr & (t[i].align-1))
if (t[i].addr & (t[i].align-1))
- error("bad alignment: %s, size: %u, align: %u, addr: 0x%lx\n",
+
t_
error("bad alignment: %s, size: %u, align: %u, addr: 0x%lx\n",
t[i].name, t[i].size, t[i].align, t[i].addr);
}
t[i].name, t[i].size, t[i].align, t[i].addr);
}
- return t
est
_status;
+ return t_status;
}
}