7 void *g
= dlopen ("unload3mod1.so", RTLD_GLOBAL
| RTLD_NOW
);
8 void *h
= dlopen ("unload3mod2.so", RTLD_GLOBAL
| RTLD_NOW
);
9 if (g
== NULL
|| h
== NULL
)
11 printf ("dlopen unload3mod{1,2}.so failed: %p %p\n", g
, h
);
17 g
= dlopen ("unload3mod3.so", RTLD_GLOBAL
| RTLD_NOW
);
18 h
= dlopen ("unload3mod4.so", RTLD_GLOBAL
| RTLD_NOW
);
19 if (g
== NULL
|| h
== NULL
)
21 printf ("dlopen unload3mod{3,4}.so failed: %p %p\n", g
, h
);
26 fn
= dlsym (h
, "bar");
29 puts ("dlsym failed");
36 printf ("bar returned %d != 24\n", val
);