From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Tool:Ghidra Function ID" |
|---|
| claim | "Each function in a .fidb is one record of the Functions Table with nine columns: code unit count, full hash, specific-hash extra size, specific hash, library id, name id, entry point, domain path id and a flags byte; full hash and name id are indexed." |
|---|
| scope | | level | "tool" |
|---|
| applies_to | "Tool:Ghidra Function ID" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "FidFunctionRecord" |
|---|
| size_min | 52 |
|---|
| fields | | offset | 0 |
|---|
| name | "code_unit_size" |
|---|
| type | "int16" |
|---|
|
| offset | 2 |
|---|
| name | "full_hash" |
|---|
| type | "int64" |
|---|
| meaning | "FNV-1a 64 over the masked instruction stream; indexed" |
|---|
|
| offset | 10 |
|---|
| name | "specific_hash_additional_size" |
|---|
| type | "int8" |
|---|
|
| offset | 11 |
|---|
| name | "specific_hash" |
|---|
| type | "int64" |
|---|
|
| offset | 19 |
|---|
| name | "library_id" |
|---|
| type | "int64" |
|---|
|
| offset | 27 |
|---|
| name | "name_id" |
|---|
| type | "int64" |
|---|
| meaning | "key in the Strings table; indexed" |
|---|
|
| offset | 35 |
|---|
| name | "entry_point" |
|---|
| type | "int64" |
|---|
|
| offset | 43 |
|---|
| name | "domain_path_id" |
|---|
| type | "int64" |
|---|
|
| offset | 51 |
|---|
| name | "flags" |
|---|
| type | "int8" |
|---|
| meaning | "see the flags enum" |
|---|
|
|
|---|
| alignment | 1 |
|---|
| variant | "Ghidra database record columns, logical offsets (stored as table columns, not a packed struct)" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Schema definition with column names and types" |
|---|
| repo | "https://github.com/NationalSecurityAgency/ghidra" |
|---|
| commit | "9a723ce99952771b8368329503aa589ae233e916" |
|---|
| path | "Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/db/FunctionsTable.java" |
|---|
| lines | "33-58" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Functions table record" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T07:03:59.437Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:13:01.688Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read FunctionsTable.java at 9a723ce: columns 0-8 with Schema types Short, Long, Byte, Long, Long, Long, Long, Long, Byte (offsets 0,2,10,11,19,27,35,43,51, total 52) and INDEXED_COLUMNS = full hash and name id. The FNV-1a description of the hash is not in this file and was not checked." |
|---|
|
|
|---|