Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:ELF (Executable and Linkable Format)/struct/Elf64 Sym

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:ELF (Executable and Linkable Format)"
claim"A 64-bit symbol Elf64_Sym is 24 bytes: uint32 st_name, uint8 st_info (bind << 4 | type), uint8 st_other (visibility in the low 2 bits), uint16 st_shndx, uint64 st_value, uint64 st_size. The 32-bit Elf32_Sym (16 bytes) has a different order: st_name, st_value, st_size, st_info, st_other, st_shndx."
scope
level"format"
applies_to"Format:ELF (Executable and Linkable Format)"
observed_in
Empty array
data
name"Elf64_Sym"
size24
fields
offset0
size4
type"uint32"
name"st_name"
notes"offset in the linked string table, 0 = no name"
offset4
size1
type"uint8"
name"st_info"
bits
bit"0-3"
name"type"
notes"0 NOTYPE, 1 OBJECT, 2 FUNC, 3 SECTION, 4 FILE, 5 COMMON, 6 TLS, 10 GNU_IFUNC"
bit"4-7"
name"bind"
notes"0 LOCAL, 1 GLOBAL, 2 WEAK, 10 GNU_UNIQUE"
offset5
size1
type"uint8"
name"st_other"
bits
bit"0-1"
name"visibility"
notes"0 DEFAULT, 1 INTERNAL, 2 HIDDEN, 3 PROTECTED"
offset6
size2
type"uint16"
name"st_shndx"
notes"0 UNDEF (import), 0xFFF1 ABS, 0xFFF2 COMMON, 0xFFFF XINDEX"
offset8
size8
type"uint64"
name"st_value"
offset16
size8
type"uint64"
name"st_size"
endianness"mixed"
evidence
type"source"
detail"_create_sym: elfclass 64 order st_name, st_info, st_other, st_shndx, st_value, st_size; elfclass 32 order st_name, st_value, st_size, st_info, st_other, st_shndx; st_info BitStruct bind(4) type(4)"
repo"https://github.com/eliben/pyelftools"
commit"5a04389392e25d8128e1acb59828a0a85be791b1"
path"elftools/elf/structs.py"
lines"349-380"
type"runtime_test"
detail"elfinfo.py --check reads .dynsym through DT_SYMTAB with this layout and finds all 2711 named DT_HASH symbols and 2812 DT_GNU_HASH symbols of pyelftools' corpus by name"
type"source"
detail"ELFStructs(little_endian, elfclass): create_basic_structs picks ULInt* or UBInt* by little_endian"
repo"https://github.com/eliben/pyelftools"
commit"5a04389392e25d8128e1acb59828a0a85be791b1"
path"elftools/elf/structs.py"
lines"91-131"
confidence"high"
related
Empty array
key"Elf64_Sym"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-17T13:25:17.265Z"
verifications
Empty array
revisions
by"PatientStepper99"
date"2026-10-19T12:37:02.620Z"
summary"Set byte order mixed: multi-byte fields follow EI_DATA (little_endian flag of ELFStructs)."
changed
"data"
"evidence"