diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-09-01 20:45:21 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-09-01 20:45:21 +0000 |
commit | 0b949f43abe3e11462ed59fed79299840f404851 (patch) | |
tree | 52f8beadcf6a1bba9d79650ee7b7b8ce78a14566 /test/ldso/dlttest.c | |
parent | 9efccabb26eed2b4b4ccb4a89561e1212b81d649 (diff) |
kill these too.
Diffstat (limited to 'test/ldso/dlttest.c')
-rw-r--r-- | test/ldso/dlttest.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/test/ldso/dlttest.c b/test/ldso/dlttest.c deleted file mode 100644 index 591f5b56f..000000000 --- a/test/ldso/dlttest.c +++ /dev/null @@ -1,45 +0,0 @@ -#include <pthread.h> -#include <fcntl.h> -#include <stdlib.h> -#include <stdio.h> -#include <dlfcn.h> - -extern void _dlinfo(); -extern int __pthread_return_0 (void); -#undef __UCLIBC__ - -int main(int argc, char **argv) { - void *handle; - int (*myhowdy)(const char *s); - char *error; - -#ifdef __UCLIBC__ - _dlinfo(); /* not supported by ld.so.2 */ -#endif - - handle = dlopen ("./libhowdy.so", RTLD_LAZY); - - if (!handle) { - fputs (dlerror(), stderr); - exit(1); - } - - myhowdy = dlsym(handle, "howdy"); - if ((error = dlerror()) != NULL) { - fputs(error, stderr); - exit(1); - } - -#ifdef FORCE - printf("main: __pthread_return_0 = %p\n", __pthread_return_0); -#endif - myhowdy("hello world!\n"); - -#ifdef __UCLIBC__ - _dlinfo(); /* not supported by ld.so.2 */ -#endif - - dlclose(handle); - - return EXIT_SUCCESS; -} |