gelf_getlib3
Get prelink library from table at the given index
Usage
#include <gelf.h> GElf_Lib *gelf_getlib (Elf_Data *data, int ndx, GElf_Lib *dst);
Overview
Retrieve a prelink library table entry from data at index ndx and store it in the class-independent representation pointed to by dst.
data must be an Elf_Data* associated with a section of type SHT_GNU_LIBLIST. data->d_type should be ELF_T_LIB. SHT_GNU_LIBLIST sections are used by the prelink utility. See https://sourceware.org/gnu-gabi/prelink.txt for more information.
Parameters
- data
-
Pointer to an
Elf_Dataof a section with typeSHT_GNU_LIBLIST. data->d_type should beELF_T_LIB.
- ndx
-
Zero-based index of the requested prelink library table entry within data.
- dst
-
Pointer to a caller-provided
GElf_Libstructure for storing the requested prelink library table entry. Must not be NULL.
Return value
On success, this function updates dst with the requested prelink library 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_getlib() | Thread safety | MT-Safe |