diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-07-25 20:47:02 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-07-25 20:47:02 +0000 |
commit | 48ab1c2ff51c7c4bcd71e1bdaf2c58cdbb560d03 (patch) | |
tree | ca38bfbc2ee144805614ab85d96b86115a06d588 /elf/link.h | |
parent | 39ab0fdf56092ba49786f17b9cbfb50cc7db338f (diff) | |
download | glibc-48ab1c2ff51c7c4bcd71e1bdaf2c58cdbb560d03.tar.gz |
Update.
2001-07-25 Jakub Jelinek <jakub@redhat.com>
* elf/Makefile (routines): Add dl-iteratephdr and
dl-iteratephdr-static.
(elide-routines.os): Add dl-iteratephdr-static.
* elf/dl-iteratephdr.c: New file.
* elf/link.h (struct dl_phdr_info): New definition.
(dl_iterate_phdr): New prototype.
* elf/Versions (dl_iterate_phdr): Add at GLIBC_2.2.4.
* include/link.h (struct dl_phdr_info): New definition.
(dl_iterate_phdr, __dl_iterate_phdr): New prototypes.
* sysdeps/generic/dl-iteratephdr-static.c: New file.
* sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: New file.
* hurd/hurdsig.c (_hurdsig_init): Fix incorrect initialization
of pending signals.
Diffstat (limited to 'elf/link.h')
-rw-r--r-- | elf/link.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/elf/link.h b/elf/link.h index 1aa0a3e597..f8e7f629d0 100644 --- a/elf/link.h +++ b/elf/link.h @@ -1,6 +1,6 @@ /* Data structure for communication from the run-time dynamic linker for loaded ELF shared objects. - Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -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 */ |