The following ELF datatypes are supported by the library.
ELF_T_ADDR
Machine addresses.
ELF_T_BYTE
Byte data. The library will not attempt to translate byte data.
ELF_T_CAP
Software and hardware capability records.
ELF_T_DYN
Records used in a section of type SHT_DYNAMIC.
ELF_T_EHDR
ELF executable header.
ELF_T_HALF
16-bit unsigned words.
ELF_T_LWORD
64 bit unsigned words.
ELF_T_MOVE
ELF Move records.
ELF_T_NOTE
ELF Note structures.
ELF_T_PHDR
ELF program header table entries.
ELF_T_REL
ELF relocation entries.
ELF_T_RELA
ELF relocation entries with addends.
ELF_T_SHDR
ELF section header entries.
ELF_T_SWORD
Signed 32-bit words.
ELF_T_SXWORD
Signed 64-bit words.
ELF_T_SYMINFO
ELF symbol information.
ELF_T_SYM
ELF symbol table entries.
ELF_T_VDEF
Symbol version definition records.
ELF_T_VNEED
Symbol version requirement records.
ELF_T_WORD
Unsigned 32-bit words.
ELF_T_XWORD
Unsigned 64-bit words.
The symbol
ELF_T_NUM denotes the number of Elf types known to the library.
The following table shows the mapping between ELF section types defined in
elf(5) and the types supported by the library.
Section Type
Library Type
Description
SHT_DYNAMIC
ELF_T_DYN
‘.dynamic' section entries.
SHT_DYNSYM
ELF_T_SYM
Symbols for dynamic linking.
SHT_FINI_ARRAY
ELF_T_ADDR
Termination function pointers.
SHT_GROUP
ELF_T_WORD
Section group marker.
SHT_HASH
ELF_T_HASH
Symbol hashes.
SHT_INIT_ARRAY
ELF_T_ADDR
Initialization function pointers.
SHT_NOTE
ELF_T_NOTE
ELF note records.
SHT_PREINIT_ARRAY
ELF_T_ADDR
Pre-initialization function pointers.
SHT_PROGBITS
ELF_T_BYTE
Machine code.
SHT_REL
ELF_T_REL
ELF relocation records.
SHT_RELA
ELF_T_RELA
Relocation records with addends.
SHT_STRTAB
ELF_T_BYTE
String tables.
SHT_SYMTAB
ELF_T_SYM
Symbol tables.
SHT_SYMTAB_SHNDX
ELF_T_WORD
Used with extended section numbering.
SHT_GNU_verdef
ELF_T_VDEF
Symbol version definitions.
SHT_GNU_verneed
ELF_T_VNEED
Symbol versioning requirements.
SHT_GNU_versym
ELF_T_HALF
Version symbols.
SHT_SUNW_move
ELF_T_MOVE
ELF move records.
SHT_SUNW_syminfo
ELF_T_SYMINFO
Additional symbol flags.