comparison objgrep/coffconst.h @ 167:c25367bb7656

objgrep: written, compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 04 Jul 2014 00:54:33 +0000
parents leo-obj/tool/coffconst.h@fd772de226cb
children
comparison
equal deleted inserted replaced
166:861f5ca49581 167:c25367bb7656
1 /********************** STORAGE CLASSES **********************/
2
3 #define C_NULL 0
4 #define C_AUTO 1 /* automatic variable */
5 #define C_EXT 2 /* external symbol */
6 #define C_STAT 3 /* static */
7 #define C_REG 4 /* register variable */
8 #define C_EXTREF 5 /* external reference */
9 #define C_LABEL 6 /* label */
10 #define C_ULABEL 7 /* undefined label */
11 #define C_MOS 8 /* member of structure */
12 #define C_ARG 9 /* function argument */
13 #define C_STRTAG 10 /* structure tag */
14 #define C_MOU 11 /* member of union */
15 #define C_UNTAG 12 /* union tag */
16 #define C_TPDEF 13 /* type definition */
17 #define C_USTATIC 14 /* undefined static */
18 #define C_ENTAG 15 /* enumeration tag */
19 #define C_MOE 16 /* member of enumeration */
20 #define C_REGPARM 17 /* register parameter */
21 #define C_FIELD 18 /* bit field */
22 #define C_UEXT 19 /* Tentative external definition */
23 #define C_STATLAB 20 /* Static load time label */
24 #define C_EXTLAB 21 /* External load time label */
25 #define C_SYSTEM 23 /* System Wide variable */
26 #define C_VARARG 27 /* from TI's spraao8.pdf */
27 #define C_BLOCK 100 /* ".bb" or ".eb" */
28 #define C_FCN 101 /* ".bf" or ".ef" */
29 #define C_EOS 102 /* end of structure */
30 #define C_FILE 103 /* file name */
31 #define C_LINE 104 /* line # reformatted as symbol table entry */
32
33 /* Type of a symbol, in low 4 bits of the word. */
34
35 #define T_VOID 0 /* seen in void ptrs in our objects */
36 #define T_CHAR 2 /* character */
37 #define T_SHORT 3 /* short integer */
38 #define T_INT 4 /* integer */
39 #define T_LONG 5 /* long integer */
40 #define T_FLOAT 6 /* floating point */
41 #define T_DOUBLE 7 /* double word */
42 #define T_STRUCT 8 /* structure */
43 #define T_UNION 9 /* union */
44 #define T_ENUM 10 /* enumeration */
45 #define T_MOE 11 /* member of enumeration*/
46 #define T_UCHAR 12 /* unsigned character */
47 #define T_USHORT 13 /* unsigned short */
48 #define T_UINT 14 /* unsigned integer */
49 #define T_ULONG 15 /* unsigned long */
50
51 /* Derived types, in n_type. */
52
53 #define DT_NON 0 /* no derived type */
54 #define DT_PTR 1 /* pointer */
55 #define DT_FCN 2 /* function */
56 #define DT_ARY 3 /* array */
57
58 /* Reloc types */
59
60 #define RTYPE_LONG 0x11
61 #define RTYPE_THUMB_BL 0x16
62 #define RTYPE_ARM_B 0x17