9 #ifdef HAVE_ASM_UNIQUE_OBJECT
10 void *h1
= dlopen ("tst-unique1mod1.so", RTLD_LAZY
);
13 puts ("cannot load tst-unique1mod1");
16 int *(*f1
) (void) = dlsym (h1
, "f");
19 puts ("cannot locate f in tst-unique1mod1");
22 void *h2
= dlopen ("tst-unique1mod2.so", RTLD_LAZY
);
25 puts ("cannot load tst-unique1mod2");
28 int (*f2
) (int *) = dlsym (h2
, "f");
31 puts ("cannot locate f in tst-unique1mod2");
36 puts ("f from tst-unique1mod2 failed");
41 mmap (NULL
, 1024 * 1024 * 16, PROT_NONE
, MAP_PRIVATE
| MAP_ANONYMOUS
, -1, 0);
42 h2
= dlopen ("tst-unique1mod2.so", RTLD_LAZY
);
45 puts ("cannot load tst-unique1mod2");
51 puts ("cannot locate f in tst-unique1mod2");
54 h1
= dlopen ("tst-unique1mod1.so", RTLD_LAZY
);
57 puts ("cannot load tst-unique1mod1");
63 puts ("cannot locate f in tst-unique1mod1");
68 puts ("f from tst-unique1mod2 failed");
75 #define TEST_FUNCTION do_test ()
76 #include "../test-skeleton.c"