glibc/elf/nextmod1.c
Ulrich Drepper 917fd06163 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.
2000-09-15 17:35:04 +00:00

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__);
}