Mark internal netlink functions with attribute_hidden [BZ #18822]
[glibc.git] / elf / tst-deep1.c
blob97dce7ea4d9acdd0ef954818b5e11c6bd4ff91fe
1 #include <dlfcn.h>
2 #include <stdio.h>
4 int
5 xyzzy (void)
7 printf ("%s:%s\n", __FILE__, __func__);
8 return 21;
11 int
12 back (void)
14 printf ("%s:%s\n", __FILE__, __func__);
15 return 1;
18 extern int foo (void);
20 static int
21 do_test (void)
23 void *p = dlopen ("$ORIGIN/tst-deep1mod2.so", RTLD_LAZY|RTLD_DEEPBIND);
25 int (*f) (void) = dlsym (p, "bar");
26 if (f == NULL)
28 puts (dlerror ());
29 return 1;
32 return foo () + f ();
35 #include <support/test-driver.c>