diff options
Diffstat (limited to 'elf/initfirst.c')
-rw-r--r-- | elf/initfirst.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/elf/initfirst.c b/elf/initfirst.c deleted file mode 100644 index 5ca83d21bc..0000000000 --- a/elf/initfirst.c +++ /dev/null @@ -1,22 +0,0 @@ -#include <dlfcn.h> -#include <stdio.h> - -int -main (void) -{ - void *h = dlopen ("firstobj.so", RTLD_LAZY); - void *f; - if (! h) - { - printf ("cannot find firstobj.so: %s\n", dlerror ()); - return 1; - } - f = dlsym (h, "foo"); - if (! f) - { - printf ("cannot find symbol foo: %s\n", dlerror ()); - return 2; - } - ((void (*) (void)) f) (); - return 0; -} |