summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/dlfcn.c10
1 files changed, 10 insertions, 0 deletions
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 <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;
+}
OpenPOWER on IntegriCloud