author | Hajime Tazaki <tazaki@nict.go.jp> |
Fri, 28 Sep 2012 16:15:09 +0900 | |
changeset 641 | d688cc7ec69e |
child 646 | f160f9a83aee |
permissions | -rw-r--r-- |
641
d688cc7ec69e
add libm.so.6 dlopen test for R_X86_64_IRELATIVE test (dead lock)
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
1 |
#include "test.h" |
d688cc7ec69e
add libm.so.6 dlopen test for R_X86_64_IRELATIVE test (dead lock)
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
2 |
#include <dlfcn.h> |
d688cc7ec69e
add libm.so.6 dlopen test for R_X86_64_IRELATIVE test (dead lock)
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
3 |
LIB(test23); |
d688cc7ec69e
add libm.so.6 dlopen test for R_X86_64_IRELATIVE test (dead lock)
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
4 |
int main (int argc, char *argv[]) |
d688cc7ec69e
add libm.so.6 dlopen test for R_X86_64_IRELATIVE test (dead lock)
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
5 |
{ |
d688cc7ec69e
add libm.so.6 dlopen test for R_X86_64_IRELATIVE test (dead lock)
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
6 |
void *h = dlopen ("libm.so.6", RTLD_LAZY); |
d688cc7ec69e
add libm.so.6 dlopen test for R_X86_64_IRELATIVE test (dead lock)
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
7 |
dlclose (h); |
d688cc7ec69e
add libm.so.6 dlopen test for R_X86_64_IRELATIVE test (dead lock)
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
8 |
return 0; |
d688cc7ec69e
add libm.so.6 dlopen test for R_X86_64_IRELATIVE test (dead lock)
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
9 |
} |