15 h
[0] = dlopen ("ltglobmod1.so", RTLD_LAZY
);
18 printf ("%s: cannot open %s: %s",
19 __FUNCTION__
, "ltglobmod1.so", dlerror ());
22 h
[1] = dlopen ("ltglobmod2.so", RTLD_LAZY
);
25 printf ("%s: cannot open %s: %s",
26 __FUNCTION__
, "ltglobmod2.so", dlerror ());
30 puts ("loaded \"ltglobmod1.so\" without RTLD_GLOBAL");
32 fp
= dlsym (h
[1], "foo");
35 printf ("cannot get address of `foo': %s", dlerror ());
41 puts ("back in main");