From 2e3a6e76fcc56433a09b700985714393de02da5e Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Fri, 17 Sep 2004 15:57:21 +0000 Subject: Added back dl_iterate_phdr in ldso(with some small changes). Someone needs to test if it works to build and run gcj. --- include/link.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include') diff --git a/include/link.h b/include/link.h index c3ef6a6b0..f8e7f629d 100644 --- a/include/link.h +++ b/include/link.h @@ -92,4 +92,24 @@ struct link_map struct link_map *l_next, *l_prev; /* Chain of loaded objects. */ }; +#ifdef __USE_GNU + +struct dl_phdr_info + { + ElfW(Addr) dlpi_addr; + const char *dlpi_name; + const ElfW(Phdr) *dlpi_phdr; + ElfW(Half) dlpi_phnum; + }; + +__BEGIN_DECLS + +extern int dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info, + size_t size, void *data), + void *data) __THROW; + +__END_DECLS + +#endif + #endif /* link.h */ -- cgit v1.2.3