gelf_getdyn3
Get class-independent information from dynamic table at the given index
Usage
#include <gelf.h> GElf_Dyn *gelf_getdyn (Elf_Data *data, int ndx, GElf_Dyn *dst);
Overview
Retrieve a dynamic table entry from data at index ndx and store it in a class-independent representation pointed to by dst.
data must be an Elf_Data* associated with a section of type SHT_DYNAMIC
Parameters
- data
-
Pointer to an
Elf_Dataof a section with typeSHT_DYNAMIC. data->d_type should beELF_T_DYN.
- ndx
-
Zero-based index of the requested dynamic table entry within data.
- dst
-
Pointer to a caller-provided
GElf_Dynstructure for storing the requested dynamic table entry. Must not be NULL.
Return value
On success, this function updates dst with the requested dynamic table entry and returns dst. On failure, it returns NULL and sets elf_errno. If data is NULL, then NULL is returned without setting elf_errno.
Attributes
| Interface | Attribute | Value |
| gelf_getdyn() | Thread safety | MT-Safe |