diff options
author | kan <kan@FreeBSD.org> | 2007-04-03 18:35:20 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2007-04-03 18:35:20 +0000 |
commit | 94fce13c41e11c01d5203ddd98deb2dab2589a04 (patch) | |
tree | cd9e540ce609aac84de16fb7d25200f19f747d2d /lib/libc/gen/dlfcn.c | |
parent | 67fa2d73af03de731ecca39012417ed70829f489 (diff) | |
download | FreeBSD-src-94fce13c41e11c01d5203ddd98deb2dab2589a04.zip FreeBSD-src-94fce13c41e11c01d5203ddd98deb2dab2589a04.tar.gz |
Add stub for dl_iterate_phdr.
Diffstat (limited to 'lib/libc/gen/dlfcn.c')
-rw-r--r-- | lib/libc/gen/dlfcn.c | 10 |
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; +} |