comparison leo-obj/tool/intstruct.h @ 130:87b82398a08b

leo-obj project subtree started, tiobjd tool moved into it
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 06 Apr 2014 22:14:39 +0000
parents ticoff/intstruct.h@a314d6aa9bf1
children c131238c56bf
comparison
equal deleted inserted replaced
129:597143ba1c37 130:87b82398a08b
1 /*
2 * The structures defined in this header file
3 * are internal to our utility.
4 */
5
6 struct internal_scnhdr {
7 char *name;
8 unsigned size;
9 unsigned data_offset;
10 unsigned reloc_offset;
11 unsigned line_offset;
12 unsigned nreloc;
13 unsigned nlineent;
14 unsigned flags;
15 unsigned nsymbols;
16 struct internal_syment **sorted_symbols;
17 struct internal_reloc *int_relocs;
18 int disasm_mode;
19 struct hint *hints;
20 };
21
22 #define DISASM_MODE_UNKNOWN 0
23 #define DISASM_MODE_CODE 1
24 #define DISASM_MODE_DATA 2
25 #define DISASM_MODE_BSS 3
26
27 struct internal_syment {
28 unsigned number;
29 char *name;
30 unsigned value;
31 int scnum;
32 int type;
33 int class;
34 u_char *aux;
35 struct internal_scnhdr *section;
36 };
37
38 struct internal_reloc {
39 unsigned location;
40 struct internal_syment *sym;
41 int type;
42 char *typestr;
43 };
44
45 struct hint {
46 unsigned pos;
47 int type;
48 unsigned nitems;
49 int linebrk;
50 struct hint *next;
51 };
52
53 #define HINT_D8 1
54 #define HINT_D16 2
55 #define HINT_ASCIZ 3
56 #define HINT_D32 4