diff options
Diffstat (limited to 'elf/tst-deep1.c')
-rw-r--r-- | elf/tst-deep1.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/elf/tst-deep1.c b/elf/tst-deep1.c deleted file mode 100644 index 97dce7ea4d..0000000000 --- a/elf/tst-deep1.c +++ /dev/null @@ -1,35 +0,0 @@ -#include <dlfcn.h> -#include <stdio.h> - -int -xyzzy (void) -{ - printf ("%s:%s\n", __FILE__, __func__); - return 21; -} - -int -back (void) -{ - printf ("%s:%s\n", __FILE__, __func__); - return 1; -} - -extern int foo (void); - -static int -do_test (void) -{ - void *p = dlopen ("$ORIGIN/tst-deep1mod2.so", RTLD_LAZY|RTLD_DEEPBIND); - - int (*f) (void) = dlsym (p, "bar"); - if (f == NULL) - { - puts (dlerror ()); - return 1; - } - - return foo () + f (); -} - -#include <support/test-driver.c> |