add libm.so.6 dlopen test for R_X86_64_IRELATIVE test (dead lock)
authorHajime Tazaki <tazaki@nict.go.jp>
Fri, 28 Sep 2012 16:15:09 +0900
changeset 641d688cc7ec69e
parent 640 5537ab8d78d6
child 643 12d49bd087ad
add libm.so.6 dlopen test for R_X86_64_IRELATIVE test (dead lock)
test/output/test23.ref
test/test23.c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/output/test23.ref	Fri Sep 28 16:15:09 2012 +0900
     1.3 @@ -0,0 +1,2 @@
     1.4 +libtest23 constructor
     1.5 +libtest23 destructor
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/test/test23.c	Fri Sep 28 16:15:09 2012 +0900
     2.3 @@ -0,0 +1,9 @@
     2.4 +#include "test.h"
     2.5 +#include <dlfcn.h>
     2.6 +LIB(test23);
     2.7 +int main (int argc, char *argv[])
     2.8 +{
     2.9 +  void *h = dlopen ("libm.so.6", RTLD_LAZY);
    2.10 +  dlclose (h);
    2.11 +  return 0;
    2.12 +}