diff options
author | kib <kib@FreeBSD.org> | 2010-08-23 15:27:03 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-08-23 15:27:03 +0000 |
commit | 7ca1c6f40abcb8550b7bbf0c67ceb3a73d93b342 (patch) | |
tree | c52c4110aa9d0a6124a5e19b2b8f42dd903061cb /lib | |
parent | 14144ebea8f9236e6754fdfca897ed79c43e4da3 (diff) | |
download | FreeBSD-src-7ca1c6f40abcb8550b7bbf0c67ceb3a73d93b342.zip FreeBSD-src-7ca1c6f40abcb8550b7bbf0c67ceb3a73d93b342.tar.gz |
Introduce implementation-private rtld interface _rtld_addr_phdr, which
fills struct dl_phdr_info for the shared object that contains the
specified address, if any.
Idea and reviewed by: kan
MFC after: 3 weeks
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/Symbol.map | 1 | ||||
-rw-r--r-- | lib/libc/gen/dlfcn.c | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/gen/Symbol.map b/lib/libc/gen/Symbol.map index 5ba1860..c4f21b5 100644 --- a/lib/libc/gen/Symbol.map +++ b/lib/libc/gen/Symbol.map @@ -446,6 +446,7 @@ FBSDprivate_1.0 { _spinlock; _spinlock_debug; _spinunlock; + _rtld_addr_phdr; _rtld_atfork_pre; _rtld_atfork_post; _rtld_error; /* for private use */ diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c index a1ca29d..930ebc1 100644 --- a/lib/libc/gen/dlfcn.c +++ b/lib/libc/gen/dlfcn.c @@ -157,3 +157,11 @@ void _rtld_atfork_post(int *locks) { } + +#pragma weak _rtld_addr_phdr +int +_rtld_addr_phdr(const void *addr, struct dl_phdr_info *phdr_info) +{ + + return (0); +} |