Main index | Section 3 | Options |
#include <gelf.h>
The GElf API may be used alongside the ELF API without restriction.
GElf_Addr | |
A representation of ELF addresses. | |
GElf_Chdr | |
A class-independent representation of an ELF Compression Header. | |
GElf_Dyn | |
A class-independent representation of ELF .dynamic section entries. | |
GElf_Ehdr | |
A class-independent representation of an ELF Executable Header. | |
GElf_Half | |
An unsigned 16 bit quantity. | |
GElf_Off | |
A class-independent representation of a ELF offset. | |
GElf_Phdr | |
A class-independent representation of an ELF Program Header Table entry. | |
GElf_Rel | |
A class-independent representation of an ELF relocation entry. | |
GElf_Rela | |
A class-independent representation of an ELF relocation entry with addend. | |
GElf_Shdr | |
A class-independent representation of an ELF Section Header Table entry. | |
GElf_Sword | |
A signed 32 bit quantity. | |
GElf_Sxword | |
A signed 64 bit quantity. | |
GElf_Sym | |
A class-independent representation of an ELF symbol table entry. | |
GElf_Word | |
An unsigned 32 bit quantity. | |
GElf_Xword | |
An unsigned 64 bit quantity. | |
These data structures are sized to be compatible with the corresponding 64 bit ELF structures, and have the same internal structure as their 64 bit class-dependent counterparts. Class-dependent ELF structures are described in elf(5).
When updating an underlying 32 bit ELF data structure, the GElf routines will signal an error if a GElf value is out of range for the underlying ELF data type.
GElf_* | |
Class-independent data types. | |
gelf_* | |
For functions defined in the API set. | |
Allocating ELF Data Structures | |
gelf_newehdr() | Allocate a new ELF Executable Header. |
gelf_newphdr() | Allocate a new ELF Program Header Table. |
Data Translation | |
gelf_xlatetof() | Translate the native representation of an ELF data structure to its file representation. |
gelf_xlatetom() | Translate from the file representation of an ELF data structure to a native representation. |
Retrieving ELF Data | |
gelf_getchdr() | Retrieve an ELF Compression Header from the underlying ELF descriptor. |
gelf_getdyn() | Retrieve an ELF .dynamic table entry. |
gelf_getehdr() | Retrieve an ELF Executable Header from the underlying ELF descriptor. |
gelf_getphdr() | Retrieve an ELF Program Header Table entry from the underlying ELF descriptor. |
gelf_getrel() | Retrieve an ELF relocation entry. |
gelf_getrela() | Retrieve an ELF relocation entry with addend. |
gelf_getshdr() | Retrieve an ELF Section Header Table entry from the underlying ELF descriptor. |
gelf_getsym() | Retrieve an ELF symbol table entry. |
Queries | |
gelf_checksum() | Retrieves the ELF checksum for an ELF descriptor. |
gelf_fsize() | Retrieves the size of the file representation of an ELF type. |
gelf_getclass() | Retrieves the ELF class of an ELF descriptor. |
Updating ELF Data | |
gelf_update_dyn() | Copy back an ELF .dynamic Table entry. |
gelf_update_phdr() | Copy back an ELF Program Header Table entry. |
gelf_update_rel() | Copy back an ELF relocation entry. |
gelf_update_rela() | Copy back an ELF relocation with addend entry. |
gelf_update_shdr() | Copy back an ELF Section Header Table entry. |
gelf_update_sym() | Copy back an ELF symbol table entry. |
GELF (3) | October 23, 2020 |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | I define UNIX as “30 definitions of regular expressions living under one roof.” | ” |
— Donald Knuth |