From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:ELF (Executable and Linkable Format)" |
|---|
| claim | "The needed-versions table (.gnu.version_r, DT_VERNEED, SHT_GNU_verneed 0x6ffffffe) is a chain of Elf_Verneed records (16 bytes in ELF32 and ELF64) each followed by vn_cnt Elf_Vernaux records (16 bytes); all offsets are relative to the start of the current record." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:ELF (Executable and Linkable Format)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "Elf_Verneed / Elf_Vernaux" |
|---|
| size | 16 |
|---|
| fields | | name | "vn_version" |
|---|
| offset | 0 |
|---|
| type | "uint16" |
|---|
| note | "1 (VER_NEED_CURRENT)" |
|---|
|
| name | "vn_cnt" |
|---|
| offset | 2 |
|---|
| type | "uint16" |
|---|
| note | "number of Vernaux" |
|---|
|
| name | "vn_file" |
|---|
| offset | 4 |
|---|
| type | "uint32" |
|---|
| note | ".dynstr offset of the library name" |
|---|
|
| name | "vn_aux" |
|---|
| offset | 8 |
|---|
| type | "uint32" |
|---|
| note | "bytes to first Vernaux" |
|---|
|
| name | "vn_next" |
|---|
| offset | 12 |
|---|
| type | "uint32" |
|---|
| note | "bytes to next Verneed, 0 at end" |
|---|
|
| name | "vna_hash" |
|---|
| offset | 0 |
|---|
| type | "uint32" |
|---|
| note | "Vernaux: SysV elf_hash of the version name" |
|---|
|
| name | "vna_flags" |
|---|
| offset | 4 |
|---|
| type | "uint16" |
|---|
| note | "Vernaux: VER_FLG_WEAK 0x2" |
|---|
|
| name | "vna_other" |
|---|
| offset | 6 |
|---|
| type | "uint16" |
|---|
| note | "Vernaux: index used in .gnu.version" |
|---|
|
| name | "vna_name" |
|---|
| offset | 8 |
|---|
| type | "uint32" |
|---|
| note | "Vernaux: .dynstr offset of e.g. GLIBC_2.2.5" |
|---|
|
| name | "vna_next" |
|---|
| offset | 12 |
|---|
| type | "uint32" |
|---|
| note | "Vernaux: bytes to next Vernaux" |
|---|
|
|
|---|
| endianness | "mixed" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Elf32/64_Verneed and Elf32/64_Vernaux typedefs" |
|---|
| repo | "https://github.com/bminor/glibc" |
|---|
| commit | "04e750e75b73957cf1c791535a3f4319534a52fc" |
|---|
| path | "elf/elf.h" |
|---|
| lines | "1117-1164" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Verneed and Vernaux" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T09:13:24.617Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:39:41.167Z" |
|---|
| summary | "Set byte order mixed: version-need records use the byte order of the ELF file (EI_DATA)." |
|---|
| changed | |
|---|
|
|
|---|