|
@@ -447,26 +447,3 @@ _dl_parse_copy_information
|
|
|
# include "../../libc/sysdeps/linux/frv/crtreloc.c"
|
|
|
#endif
|
|
|
|
|
|
-#if ! defined LIBDL || (! defined PIC && ! defined __PIC__)
|
|
|
-int
|
|
|
-__dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
|
|
|
- size_t size, void *data), void *data)
|
|
|
-{
|
|
|
- struct elf_resolve *l;
|
|
|
- struct dl_phdr_info info;
|
|
|
- int ret = 0;
|
|
|
-
|
|
|
- for (l = _dl_loaded_modules; l != NULL; l = l->next)
|
|
|
- {
|
|
|
- info.dlpi_addr = l->loadaddr;
|
|
|
- info.dlpi_name = l->libname;
|
|
|
- info.dlpi_phdr = l->ppnt;
|
|
|
- info.dlpi_phnum = l->n_phent;
|
|
|
- ret = callback (&info, sizeof (struct dl_phdr_info), data);
|
|
|
- if (ret)
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- return ret;
|
|
|
-}
|
|
|
-#endif
|