#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;/...
#include <link.h> #include <stdlib.h> #include <stdio.h> static int callback(struct dl_phdr_info *info, size_t size, void *data) { int j; printf("name=%s (%d program headers)\n", info->dlpi_name, info->dlpi_phnum); for (j = 0; j < info->dlpi_phnum; j++) { if (...
static int callback (struct dl_phdr_info *info, size_t size, void *data) { int j; printf ("name=%s (%d segments)\n", info->dlpi_name, info->dlpi_phnum); for (j = 0; j < info->dlpi_phnum; j++) { void* addr = (void *) (info->dlpi_addr + info->dlpi_phdr[j].p_...
intcallback( const struct dl_phdr_info *info, size_tsize, void *data); Its arguments are: info A pointer to adl_phdr_infostructure that includes information about the shared object: struct dl_phdr_info { #if __PTR_BITS__ == 32 Elf32_Addr dlpi_addr; const char *dlpi_name; const...
sizeはinfoで指される構造体のサイズである。dataは呼び出し 元プログラムからdl_iterate_phdr() の呼び出しの (同じくdataという名前の) 第 2 引き数と して渡される値のコピーである。info引き数は、以下のような型の構造体である。 struct dl_phdr_info { ElfW(Addr) dlpi_addr; /* ...
void*dli_saddr;size_tdli_ssize;constElfW(Phdr)*dlpi_phdr;size_tdlpi_phnum; }xdl_info_t;#defineXDL_DEFAULT0x00#defineXDL_NON_SYM0x01intxdl_addr(void*addr,xdl_info_t*info,void**cache);intxdl_addr4(void*addr,xdl_info_t*info,void**cache,intflags);voidxdl_addr_clean(void**cache);...
info.dlpi_addr = base; info.dlpi_name = "/proc/self/exe"; info.dlpi_phdr = (void *)aux[AT_PHDR]; info.dlpi_phnum = aux[AT_PHNUM]; info.dlpi_adds = 0; info.dlpi_subs = 0; if (tls_phdr) { info.dlpi_tls_modid = 1; info.dlpi_tls_data = __tls_get_addr((tls_mod_of...
dl_iterate_phdr(3C) dladdr(3C) dladdr1(3C) dlclose(3C) dldump(3C) dlerror(3C) dlinfo(3C) dlmopen(3C) dlopen(3C) dlsym(3C) dngettext(3C) door_bind(3C) door_call(3C) door_create(3C) door_cred(3C) door_getparam(3C) door_info(3C) door_return(3C) door_revoke(3C) door_server...
regarding glibc: FTBFS on alpha due to buggy GL(dl_phdr) and GL(dl_phnum) [BZ #29864] to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the ...
drtuber.py drtv.py dtube.py dumpert.py dvtv.py dw.py eagleplatform.py ebaumsworld.py echomsk.py egghead.py ehow.py eighttracks.py einthusan.py eitb.py ellentube.py elpais.py embedly.py engadget.py eporner.py eroprofile.py escapist.py espn.py esri.py europa.py ...