diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-09-15 17:35:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-09-15 17:35:04 +0000 |
commit | 917fd0616395f800489f223140967cb61a5a5765 (patch) | |
tree | 506087329db9e9601202f9d039ddebe2bbdceb2f /elf/nextmod1.c | |
parent | ea4d748699466c16acff05b7bc75fdda7ff3d8c2 (diff) | |
download | glibc-917fd0616395f800489f223140967cb61a5a5765.tar glibc-917fd0616395f800489f223140967cb61a5a5765.tar.gz glibc-917fd0616395f800489f223140967cb61a5a5765.tar.bz2 glibc-917fd0616395f800489f223140967cb61a5a5765.zip |
Update.
2000-09-15 Ulrich Drepper <drepper@redhat.com>
* elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
(tests): Add next.
(modules-names): Add nextmod1 and nextmod2.
Add rules to build and run next.
* elf/next.c: New file.
* elf/nextmod1.c: New file.
* elf/nextmod2.c: New file.
2000-09-14 Jakub Jelinek <jakub@redhat.com>
* elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
Diffstat (limited to 'elf/nextmod1.c')
-rw-r--r-- | elf/nextmod1.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/elf/nextmod1.c b/elf/nextmod1.c new file mode 100644 index 0000000000..3549c75174 --- /dev/null +++ b/elf/nextmod1.c @@ -0,0 +1,20 @@ +#include <dlfcn.h> + +int +successful_rtld_next_test (void) +{ + int (*fp) (void); + + /* Get the next function... */ + fp = (int (*) (void)) dlsym (RTLD_NEXT, __FUNCTION__); + + /* ...and simply call it. */ + return fp (); +} + + +void * +failing_rtld_next_use (void) +{ + return dlsym (RTLD_NEXT, __FUNCTION__); +} |