#define_GNU_SOURCE#include<link.h>intdl_iterate_phdr(int(*callback) (structdl_phdr_info* info,size_tsize,void*data),void*data ); 概要 遍历所依赖的共享库, 对每个对象都调用一次回调函数,直到遍历所有的, 或者回调返回非零值。 dl_phdr_info 结构 structdl_phdr_info{ElfW(Addr) dlpi_addr;/...
Thedl_iterate_phdr()function iterates over all the shared objects that are loaded into the calling process's address space and calls the given callback once for each object, until it has processed all the shared objects, or the callback returns a nonzero value. ...
#include <link.h> int dl_iterate_phdr(int (* callback)(struct dl_phdr_info *info, size_t size, void * data), void *data); DescriptionThe dl_iterate_phdr() function returns information regarding each ELF object currently resident in the process address space....
Only GNU/Linux guarantees: the name of the executable is "" the executable is the first callback This doesn't seem to be guaranteed to be true, even on other flavors of Linux, which may have a sense of humor, e.g. musl's choices in the s...
问我可以使用dl_iterate_phdr来监视执行进程吗?EN这篇文章将解释如何在 Windows 上找到似乎没有人在...
Should be fine; internally dl_iterate_phdr is implemented using get_next_image_info anyway. You lose the "length" information since the phdr structs don't provide this, but that's the same as on other OSes. Also note that dl_iterate_phdr is in libbsd.so, the "BSD-related APIs" li...
问未定义的对`dl_iterate_phdr的引用EN聊聊Java的引用类型(强引用、软引用、弱引用、虚引用),示例...
Author: Ali Bahrami <Ali.Bahrami at Sun.COM> Repository: /hg/onnv/onnv-gate Latest revision: 1c19a1778a4fe12ff075c785dd8bf92c533b97ab Total changesets: 1 Log message: 6914728 Add dl_iterate_phdr() function to ld.so.1 PSARC/2010/015 dl_iterate_phdr Files: update: usr/src/cmd/...