-
Notifications
You must be signed in to change notification settings - Fork 0
/
signature.fbs
46 lines (38 loc) · 1.11 KB
/
signature.fbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
include "type.fbs";
include "symbol.fbs";
namespace SigBin;
file_identifier "SBIN";
file_extension "sbin";
table BasicBlock {
guid:string (required);
// TODO: successors:[string];
// TODO: predecessors:[string];
}
table FunctionConstraint {
guid:string;
// In cases where a function guid was not able to be generated, we can match on symbol.
symbol:SymbolBin.Symbol;
// The byte offset from the start of the constrained function.
// A negative number would indicate that the constraint occurs before the start of the function.
offset:long;
}
table FunctionConstraints {
// Adjacent functions.
adjacent:[FunctionConstraint];
// Call sites within the function.
call_sites:[FunctionConstraint];
// Callers to the function.
caller_sites:[FunctionConstraint];
}
table Function {
// TODO: Add architecture, this is required to support multi-arch binaries...
guid:string (required);
symbol:SymbolBin.Symbol;
type:TypeBin.Type;
constraints:FunctionConstraints;
}
table Data {
functions:[Function];
types:[TypeBin.ComputedType];
}
root_type Data;