summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-19 10:01:33 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-19 10:01:33 +0000
commitc8b3ccaedb7e08a2d25ce4485ff7e13ddc6e92a5 (patch)
tree2de614bef18c7052faafebda46971bec022cf94d /test
parent0fd2aadea368f0ddd9e3078e39251849ffeeb15b (diff)
Open a lib that is not so closely coupled with gdb
Diffstat (limited to 'test')
-rw-r--r--test/ldso/Makefile2
-rw-r--r--test/ldso/dltest2.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/test/ldso/Makefile b/test/ldso/Makefile
index 3d2a47ad9..2d3611222 100644
--- a/test/ldso/Makefile
+++ b/test/ldso/Makefile
@@ -22,7 +22,7 @@ include $(TESTDIR)/Rules.mak
CFLAGS+=--uclibc-ctors
all: dltest2 dltest libhowdy.so run
-dltest2: dltest.c
+dltest2: dltest2.c
$(CC) $(CFLAGS) dltest2.c -o dltest2 -ldl
./dltest2
diff --git a/test/ldso/dltest2.c b/test/ldso/dltest2.c
index 066c37202..91bafa40e 100644
--- a/test/ldso/dltest2.c
+++ b/test/ldso/dltest2.c
@@ -10,16 +10,16 @@ int main(int argc, char **argv) {
void *handle;
td_err_e (*td_init_p) (void);
- fprintf(stderr, "Attempting to dlopen() libthread_db.so with RTLD_NOW\n");
- handle = dlopen ("libthread_db.so", RTLD_NOW);
+ fprintf(stderr, "Attempting to dlopen() libpthread.so with RTLD_NOW\n");
+ handle = dlopen ("libpthread.so", RTLD_NOW);
if (!handle) {
fputs (dlerror(), stderr);
exit(1);
}
- td_init_p = dlsym (handle, "td_init");
+ td_init_p = dlsym (handle, "__pthread_initialize");
if (td_init_p == NULL) {
- fprintf(stderr, "yipe! td_init() failed!\n");
+ fprintf(stderr, "yipe! __pthread_initialize() failed!\n");
return EXIT_FAILURE;
}
#if 0 //def __UCLIBC__
@@ -28,16 +28,16 @@ int main(int argc, char **argv) {
dlclose(handle);
- fprintf(stderr, "Attempting to dlopen() libthread_db.so with RTLD_LAZY\n");
- handle = dlopen ("libthread_db.so", RTLD_LAZY);
+ fprintf(stderr, "Attempting to dlopen() libpthread.so with RTLD_LAZY\n");
+ handle = dlopen ("libpthread.so", RTLD_LAZY);
if (!handle) {
fputs (dlerror(), stderr);
exit(1);
}
- td_init_p = dlsym (handle, "td_init");
+ td_init_p = dlsym (handle, "__pthread_initialize");
if (td_init_p == NULL) {
- fprintf(stderr, "yipe! td_init() failed!");
+ fprintf(stderr, "yipe! __pthread_initialize() failed!");
return EXIT_FAILURE;
}
#if 0 //def __UCLIBC__