#ifndef _LINK_ELF_H
#define _LINK_ELF_H
#include <elf_abi.h>
#ifndef DT_PROCNUM
#define DT_PROCNUM 0
#endif
struct link_map {
caddr_t l_addr;
const char *l_name;
void *l_ld;
struct link_map *l_next;
struct link_map *l_prev;
};
struct dl_phdr_info {
Elf_Addr dlpi_addr;
const char *dlpi_name;
const Elf_Phdr *dlpi_phdr;
Elf_Half dlpi_phnum;
};
__BEGIN_DECLS
int dl_iterate_phdr (int (*)(struct dl_phdr_info *, size_t, void *),
void *);
void *dl_unwind_find_exidx(const void *, int *);
__END_DECLS
#endif