| Main index | Section 3 | Options |
#include <link.h>
struct dl_phdr_info {
Elf_Addr dlpi_addr;
const char *dlpi_name;
const Elf_Phdr *dlpi_phdr;
Elf_Half dlpi_phnum;
unsigned long long int dlpi_adds;
unsigned long long int dlpi_subs;
size_t dlpi_tls_modid;
void *dlpi_tls_data;
};
The members of struct dl_phdr_info have the following meaning:
| dlpi_addr | |
| The base address at which the object is mapped into the address space of the calling process. | |
| dlpi_name | |
| The pathname of the ELF object. | |
| dlpi_phdr | |
| A pointer to the object's program headers. | |
| dlpi_phnum | |
| The number of program headers in the object. | |
| dlpi_adds | |
| The counter of the object loads performed by the dynamic linker. | |
| dlpi_subs | |
| The counter of the object unloads performed by the dynamic linker. | |
| dlpi_tls_modid | |
| The TLS index of the object. | |
| dlpi_tls_data | |
| A pointer to the calling thread' TLS data segment for this module, if it was allocated, NULL otherwise. | |
Future versions of FreeBSD might add more members to this structure. To make it possible for programs to check whether any new members have been added, the size of the structure is passed as an second argument to callback.
The third argument to callback is the data value passed to the call to dl_iterate_phdr(), allowing the callback to have a context.
| DL_ITERATE_PHDR (3) | April 5, 2021 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
