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 /* this is the same everywhere except alpha and s390 */
20 typedef uint32_t Elf_Symndx
;
24 const char *dlpi_name
;
25 const ElfW(Phdr
) *dlpi_phdr
;
26 ElfW(Half
) dlpi_phnum
;
27 unsigned long long int dlpi_adds
;
28 unsigned long long int dlpi_subs
;
29 size_t dlpi_tls_modid
;
37 struct link_map
*l_next
, *l_prev
;
42 struct link_map
*r_map
;
44 enum { RT_CONSISTENT
, RT_ADD
, RT_DELETE
} r_state
;
48 int dl_iterate_phdr(int (*)(struct dl_phdr_info
*, size_t, void *), void *);