]> git.ipfire.org Git - thirdparty/glibc.git/blame - elf/tst-deep1.c
Update copyright dates not handled by scripts/update-copyrights.
[thirdparty/glibc.git] / elf / tst-deep1.c
CommitLineData
1fc07491
UD
1#include <dlfcn.h>
2#include <stdio.h>
3
4int
5xyzzy (void)
6{
7 printf ("%s:%s\n", __FILE__, __func__);
8 return 21;
9}
10
11int
12back (void)
13{
14 printf ("%s:%s\n", __FILE__, __func__);
15 return 1;
16}
17
18extern int foo (void);
19
20static int
21do_test (void)
22{
23 void *p = dlopen ("$ORIGIN/tst-deep1mod2.so", RTLD_LAZY|RTLD_DEEPBIND);
24
25 int (*f) (void) = dlsym (p, "bar");
26 if (f == NULL)
27 {
28 puts (dlerror ());
29 return 1;
30 }
31
32 return foo () + f ();
33}
34
36fe25fd 35#include <support/test-driver.c>