mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
917fd06163
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.
21 lines
305 B
C
21 lines
305 B
C
#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__);
|
|
}
|