From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:ELF (Executable and Linkable Format)" |
|---|
| claim | "The dynamic table (PT_DYNAMIC, section .dynamic) is an array of Elf64_Dyn {int64 d_tag; uint64 d_val} (16 bytes; Elf32_Dyn is 8 bytes) ending with d_tag 0 DT_NULL. String tags (DT_NEEDED, DT_SONAME, DT_RPATH, DT_RUNPATH) hold offsets into DT_STRTAB; pointer tags hold virtual addresses, not file offsets." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:ELF (Executable and Linkable Format)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "Elf64_Dyn" |
|---|
| size | 16 |
|---|
| fields | | offset | 0 |
|---|
| size | 8 |
|---|
| type | "int64" |
|---|
| name | "d_tag" |
|---|
|
| offset | 8 |
|---|
| size | 8 |
|---|
| type | "uint64" |
|---|
| name | "d_val" |
|---|
| notes | "d_ptr in the union: a virtual address" |
|---|
|
|
|---|
| endianness | "mixed" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "_create_dyn: Enum(Elf_sxword d_tag), Elf_xword d_val, d_ptr = d_val" |
|---|
| repo | "https://github.com/eliben/pyelftools" |
|---|
| commit | "5a04389392e25d8128e1acb59828a0a85be791b1" |
|---|
| path | "elftools/elf/structs.py" |
|---|
| lines | "335-347" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "exe_simple64.elf: 26 entries at 0xE40; DT_NEEDED 1 -> libc.so.6 through DT_STRTAB 0x400330 (file offset 0x330 via the first PT_LOAD)" |
|---|
|
| 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 | |
|---|
| key | "Elf64_Dyn" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T13:25:17.541Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:03:42.976Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read _create_dyn in structs.py at 5a043893: Elf_sxword d_tag, Elf_xword d_val, d_ptr = d_val; 16 bytes in ELF64." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:37:02.205Z" |
|---|
| summary | "Set byte order mixed: multi-byte fields follow EI_DATA (little_endian flag of ELFStructs)." |
|---|
| changed | |
|---|
|
|
|---|