Browse Source

Add dl_iterate_phdr() support.

ok drahn@, millert@
OPENBSD_3_7
kettenis 20 years ago
parent
commit
7094ff0c68
1 changed files with 14 additions and 1 deletions
  1. +14
    -1
      src/include/link_elf.h

+ 14
- 1
src/include/link_elf.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: link_elf.h,v 1.4 2002/09/08 17:55:37 drahn Exp $ */
/* $OpenBSD: link_elf.h,v 1.5 2004/10/14 10:02:28 kettenis Exp $ */
/* /*
* Public domain. * Public domain.
@ -25,4 +25,17 @@ struct link_map {
struct link_map *l_next; struct link_map *l_next;
struct link_map *l_prev; 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 *);
__END_DECLS
#endif /* !_LINK_ELF_H */ #endif /* !_LINK_ELF_H */

Loading…
Cancel
Save