gelf_update_move3
Update class-independent move structure at the given index
Usage
#include <gelf.h> int gelf_update_move (Elf_Data *data, int ndx, GElf_Move *src);
Overview
This function copies a class-independent move structure from src into the SHT_SUNW_move section associated with data at entry index ndx.
data should be associated with an ELF section with type SHT_SUNW_move section. data->d_type should be ELF_T_MOVE. These types are Sun/Solaris extensions and are not typically used in GNU/Linux ELF files.
Parameters
- data
-
Pointer to an
Elf_Dataassociated with aSHT_SUNW_movesection. data->d_type should beELF_T_MOVE.
- ndx
-
Zero-based index of the move structure entry to be updated within data.
- src
-
Pointer to a caller-provided move structure. For
ELFCLASS32binaries,m_infoandm_poffsetshould be able to fit within unsigned 32-bit values. TheGELF_M_SIZEcomponent ofm_infoshould fit in unsigned 8 bits and theGELF_M_SYMcomponent should fit in unsigned 24 bits. src must not be NULL.
Return value
On success, this function returns a non-zero value and updates the move entry at index ndx in data. The section 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 without setting elf_errno.
Attributes
| Interface | Attribute | Value |
| gelf_update_move() | Thread safety | MT-Safe |