The GElf API defines the following class-independent data structures:
GElf_Addr
A representation of ELF addresses.
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).