9 static const char modname
[] = "tst-tlsmod2.so";
13 int (*fp
) (int, int *);
16 h
= dlopen (modname
, RTLD_LAZY
);
19 printf ("cannot open '%s': %s\n", modname
, dlerror ());
23 foop
= dlsym (h
, "foo");
26 printf ("cannot get symbol 'foo': %s\n", dlerror ());
32 fp
= dlsym (h
, "in_dso");
35 printf ("cannot get symbol 'in_dso': %s\n", dlerror ());
39 result
|= fp (42, foop
);
41 foop2
= dlsym (h
, "foo");
44 printf ("cannot get symbol 'foo' the second time: %s\n", dlerror ());
50 puts ("address of 'foo' different the second time");
65 #include <support/test-driver.c>