FreeCalypso > hg > freecalypso-reveng
diff leo-obj/tool/coffconst.h @ 144:fd772de226cb
tiobjd: started implementing rich symbolic info parsing
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 28 Apr 2014 08:04:39 +0000 |
parents | 87b82398a08b |
children |
line wrap: on
line diff
--- a/leo-obj/tool/coffconst.h Mon Apr 28 05:55:40 2014 +0000 +++ b/leo-obj/tool/coffconst.h Mon Apr 28 08:04:39 2014 +0000 @@ -30,6 +30,31 @@ #define C_FILE 103 /* file name */ #define C_LINE 104 /* line # reformatted as symbol table entry */ +/* Type of a symbol, in low 4 bits of the word. */ + +#define T_VOID 0 /* seen in void ptrs in our objects */ +#define T_CHAR 2 /* character */ +#define T_SHORT 3 /* short integer */ +#define T_INT 4 /* integer */ +#define T_LONG 5 /* long integer */ +#define T_FLOAT 6 /* floating point */ +#define T_DOUBLE 7 /* double word */ +#define T_STRUCT 8 /* structure */ +#define T_UNION 9 /* union */ +#define T_ENUM 10 /* enumeration */ +#define T_MOE 11 /* member of enumeration*/ +#define T_UCHAR 12 /* unsigned character */ +#define T_USHORT 13 /* unsigned short */ +#define T_UINT 14 /* unsigned integer */ +#define T_ULONG 15 /* unsigned long */ + +/* Derived types, in n_type. */ + +#define DT_NON 0 /* no derived type */ +#define DT_PTR 1 /* pointer */ +#define DT_FCN 2 /* function */ +#define DT_ARY 3 /* array */ + /* Reloc types */ #define RTYPE_LONG 0x11