comparison ticoff/intstruct.h @ 126:2c6b1319383b

tiobjd: first preparations for adding disasm hints mechanism
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 05 Apr 2014 19:14:43 +0000
parents 5f4141ee175b
children a314d6aa9bf1
comparison
equal deleted inserted replaced
125:b8ac21536779 126:2c6b1319383b
13 unsigned nlineent; 13 unsigned nlineent;
14 unsigned flags; 14 unsigned flags;
15 unsigned nsymbols; 15 unsigned nsymbols;
16 struct internal_syment **sorted_symbols; 16 struct internal_syment **sorted_symbols;
17 struct internal_reloc *int_relocs; 17 struct internal_reloc *int_relocs;
18 int sectype_hint;
19 struct hint *hints;
18 }; 20 };
21
22 #define SECTYPE_CODE 1
23 #define SECTYPE_DATA 2
24 #define SECTYPE_BSS 3
19 25
20 struct internal_syment { 26 struct internal_syment {
21 unsigned number; 27 unsigned number;
22 char *name; 28 char *name;
23 unsigned value; 29 unsigned value;
32 unsigned location; 38 unsigned location;
33 struct internal_syment *sym; 39 struct internal_syment *sym;
34 int type; 40 int type;
35 char *typestr; 41 char *typestr;
36 }; 42 };
43
44 struct hint {
45 unsigned pos;
46 int type;
47 unsigned nitems;
48 int linebrk;
49 struct hint *next;
50 };
51
52 #define HINT_D8 1
53 #define HINT_D16 2
54 #define HINT_ASCIZ 3
55 #define HINT_D32 4