9 void *h1
= dlopen ("tst-unique1mod1.so", RTLD_LAZY
);
12 puts ("cannot load tst-unique1mod1");
15 int *(*f1
) (void) = dlsym (h1
, "f");
18 puts ("cannot locate f in tst-unique1mod1");
21 void *h2
= dlopen ("tst-unique1mod2.so", RTLD_LAZY
);
24 puts ("cannot load tst-unique1mod2");
27 int (*f2
) (int *) = dlsym (h2
, "f");
30 puts ("cannot locate f in tst-unique1mod2");
35 puts ("f from tst-unique1mod2 failed");
40 mmap (NULL
, 1024 * 1024 * 16, PROT_NONE
, MAP_PRIVATE
| MAP_ANONYMOUS
, -1, 0);
41 h2
= dlopen ("tst-unique1mod2.so", RTLD_LAZY
);
44 puts ("cannot load tst-unique1mod2");
50 puts ("cannot locate f in tst-unique1mod2");
53 h1
= dlopen ("tst-unique1mod1.so", RTLD_LAZY
);
56 puts ("cannot load tst-unique1mod1");
62 puts ("cannot locate f in tst-unique1mod1");
67 puts ("f from tst-unique1mod2 failed");
73 #define TEST_FUNCTION do_test ()
74 #include "../test-skeleton.c"