From 94fce13c41e11c01d5203ddd98deb2dab2589a04 Mon Sep 17 00:00:00 2001 From: kan Date: Tue, 3 Apr 2007 18:35:20 +0000 Subject: Add stub for dl_iterate_phdr. --- lib/libc/gen/dlfcn.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/libc/gen/dlfcn.c') diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c index e0a8233..39ba141 100644 --- a/lib/libc/gen/dlfcn.c +++ b/lib/libc/gen/dlfcn.c @@ -31,6 +31,7 @@ __FBSDID("$FreeBSD$"); * Linkage to services provided by the dynamic linker. */ #include +#include #include 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; +} -- cgit v1.1