10 #define __NEED_uint32_t
11 #include <bits/alltypes.h>
13 #if UINTPTR_MAX > 0xffffffff
14 #define ElfW(type) Elf64_ ## type
16 #define ElfW(type) Elf32_ ## type
19 #include <bits/link.h>
23 const char *dlpi_name
;
24 const ElfW(Phdr
) *dlpi_phdr
;
25 ElfW(Half
) dlpi_phnum
;
26 unsigned long long int dlpi_adds
;
27 unsigned long long int dlpi_subs
;
28 size_t dlpi_tls_modid
;
36 struct link_map
*l_next
, *l_prev
;
41 struct link_map
*r_map
;
43 enum { RT_CONSISTENT
, RT_ADD
, RT_DELETE
} r_state
;
47 int dl_iterate_phdr(int (*)(struct dl_phdr_info
*, size_t, void *), void *);