gelf_update_dyn3
Update class-independent information in the dynamic table at the given index
Usage
#include <gelf.h> int gelf_update_dyn (Elf_Data *data, int ndx, GElf_Dyn *src);
Overview
Copy a class-independent dynamic table entry from src into the SHT_DYNAMIC section associated with data at index ndx.
Parameters
- data
-
Pointer to an
Elf_Dataassociated with a section with typeSHT_DYNAMIC. data->d_type should beELF_T_DYN.
- ndx
-
Zero-based index of the dynamic table entry to be updated within data.
- src
-
Pointer to a caller-provided dynamic table entry. For
ELFCLASS32binaries,d_tagshould be able to fit within a signed 32-bit value whiled_valandd_ptrshould be able to fit within unsigned 32-bit values. src must not be NULL.
Return value
On success, this function returns a non-zero value and updates the dynamic table entry at index ndx in data. The dynamic table associated with data is flagged with ELF_F_DIRTY. On failure, zero is returned and elf_errno is set. If data is NULL, then zero is returned and elf_errno is not set.
Attributes
| Interface | Attribute | Value |
| gelf_update_dyn() | Thread safety | MT-Safe |