FreeCalypso > hg > freecalypso-reveng
annotate objgrep/coffconst.h @ 207:d12a3207b1aa
D-Sample 20020917 firmware analysis
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Fri, 01 Jan 2016 23:24:05 +0000 |
parents | c25367bb7656 |
children |
rev | line source |
---|---|
78
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 /********************** STORAGE CLASSES **********************/ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 #define C_NULL 0 |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 #define C_AUTO 1 /* automatic variable */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 #define C_EXT 2 /* external symbol */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 #define C_STAT 3 /* static */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 #define C_REG 4 /* register variable */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 #define C_EXTREF 5 /* external reference */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 #define C_LABEL 6 /* label */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 #define C_ULABEL 7 /* undefined label */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 #define C_MOS 8 /* member of structure */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 #define C_ARG 9 /* function argument */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 #define C_STRTAG 10 /* structure tag */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 #define C_MOU 11 /* member of union */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 #define C_UNTAG 12 /* union tag */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 #define C_TPDEF 13 /* type definition */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 #define C_USTATIC 14 /* undefined static */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 #define C_ENTAG 15 /* enumeration tag */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 #define C_MOE 16 /* member of enumeration */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 #define C_REGPARM 17 /* register parameter */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 #define C_FIELD 18 /* bit field */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 #define C_UEXT 19 /* Tentative external definition */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 #define C_STATLAB 20 /* Static load time label */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 #define C_EXTLAB 21 /* External load time label */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 #define C_SYSTEM 23 /* System Wide variable */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 #define C_VARARG 27 /* from TI's spraao8.pdf */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 #define C_BLOCK 100 /* ".bb" or ".eb" */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 #define C_FCN 101 /* ".bf" or ".ef" */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 #define C_EOS 102 /* end of structure */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 #define C_FILE 103 /* file name */ |
c2445afce514
tiobjd: symbol storage classes decoded into mnemonics
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
31 #define C_LINE 104 /* line # reformatted as symbol table entry */ |
83
3dfecd91c5b0
tiobjd: known reloc types defined
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
78
diff
changeset
|
32 |
144
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
33 /* Type of a symbol, in low 4 bits of the word. */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
34 |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
35 #define T_VOID 0 /* seen in void ptrs in our objects */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
36 #define T_CHAR 2 /* character */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
37 #define T_SHORT 3 /* short integer */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
38 #define T_INT 4 /* integer */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
39 #define T_LONG 5 /* long integer */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
40 #define T_FLOAT 6 /* floating point */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
41 #define T_DOUBLE 7 /* double word */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
42 #define T_STRUCT 8 /* structure */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
43 #define T_UNION 9 /* union */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
44 #define T_ENUM 10 /* enumeration */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
45 #define T_MOE 11 /* member of enumeration*/ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
46 #define T_UCHAR 12 /* unsigned character */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
47 #define T_USHORT 13 /* unsigned short */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
48 #define T_UINT 14 /* unsigned integer */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
49 #define T_ULONG 15 /* unsigned long */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
50 |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
51 /* Derived types, in n_type. */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
52 |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
53 #define DT_NON 0 /* no derived type */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
54 #define DT_PTR 1 /* pointer */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
55 #define DT_FCN 2 /* function */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
56 #define DT_ARY 3 /* array */ |
fd772de226cb
tiobjd: started implementing rich symbolic info parsing
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
130
diff
changeset
|
57 |
83
3dfecd91c5b0
tiobjd: known reloc types defined
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
78
diff
changeset
|
58 /* Reloc types */ |
3dfecd91c5b0
tiobjd: known reloc types defined
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
78
diff
changeset
|
59 |
3dfecd91c5b0
tiobjd: known reloc types defined
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
78
diff
changeset
|
60 #define RTYPE_LONG 0x11 |
3dfecd91c5b0
tiobjd: known reloc types defined
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
78
diff
changeset
|
61 #define RTYPE_THUMB_BL 0x16 |
3dfecd91c5b0
tiobjd: known reloc types defined
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
78
diff
changeset
|
62 #define RTYPE_ARM_B 0x17 |