diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-08-27 19:38:14 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-08-27 19:38:14 +0000 |
commit | a74fc341b922f38161d10a9470b63ad537e13f07 (patch) | |
tree | 38fd28fd134269bc9266be0ae25a1a006515ccd3 /test/ldso/howdy.c | |
parent | 345b9927e608fd92e6231ef803b940afd6e6558c (diff) |
Semonstrate a problem where weak symbols referenced in shared libs are not
being overridden when those same symbols _are_ overridden by other shared libs
in the main app. Ick.
-Erik
Diffstat (limited to 'test/ldso/howdy.c')
-rw-r--r-- | test/ldso/howdy.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/ldso/howdy.c b/test/ldso/howdy.c index 343c81d7c..e2724068e 100644 --- a/test/ldso/howdy.c +++ b/test/ldso/howdy.c @@ -1,18 +1,23 @@ +#include <pthread.h> #include <stdio.h> +extern int __pthread_return_0 (void); + int howdy(const char *s) { - return printf("howdy: %s\n", s); + return printf("howdy: __pthread_return_0 = %p\n" + "howdy: pthread_cond_signal = %p\n", + __pthread_return_0, pthread_cond_signal); } void __attribute__((constructor)) howdy_ctor(void) { - printf("I am the libhowdy constructor!\n"); + printf("I am the libhowdy constructor!\n"); } void __attribute__((destructor)) howdy_dtor(void) { - printf("I am the libhowdy destructor!\n"); + printf("I am the libhowdy destructor!\n"); } |