Add stub for dl_iterate_phdr.

This commit is contained in:
Alexander Kabaev 2007-04-03 18:35:20 +00:00
parent 585b090609
commit 832a21869c

View File

@ -31,6 +31,7 @@ __FBSDID("$FreeBSD$");
* Linkage to services provided by the dynamic linker.
*/
#include <dlfcn.h>
#include <link.h>
#include <stddef.h>
static const char sorry[] = "Service unavailable";
@ -127,3 +128,12 @@ _rtld_thread_init(void * li)
{
_rtld_error(sorry);
}
#pragma weak dl_iterate_phdr
int
dl_iterate_phdr(int (*callback)(struct dl_phdr_info *, size_t, void *),
void *data)
{
_rtld_error(sorry);
return 0;
}