added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / compiler / include / dos / doshunks.h
blob3129665fb9dc772463681053cedafbc74823d7ac
1 #ifndef DOS_DOSHUNKS_H
2 #define DOS_DOSHUNKS_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Definition of hunks, used in executable files.
9 Lang: english
12 /* Hunk types */
13 #define HUNK_UNIT 999
14 #define HUNK_NAME 1000
15 #define HUNK_CODE 1001
16 #define HUNK_DATA 1002
17 #define HUNK_BSS 1003
18 #define HUNK_RELOC32 1004
19 #define HUNK_ABSRELOC32 1004
20 #define HUNK_RELOC16 1005
21 #define HUNK_RELRELOC16 1005
22 #define HUNK_RELOC8 1006
23 #define HUNK_RELRELOC8 1006
24 #define HUNK_EXT 1007
25 #define HUNK_SYMBOL 1008
26 #define HUNK_DEBUG 1009
27 #define HUNK_END 1010
28 #define HUNK_HEADER 1011
29 #define HUNK_OVERLAY 1013
30 #define HUNK_BREAK 1014
31 #define HUNK_DREL32 1015
32 #define HUNK_DREL16 1016
33 #define HUNK_DREL8 1017
34 #define HUNK_LIB 1018
35 #define HUNK_INDEX 1019
36 #define HUNK_RELOC32SHORT 1020
37 #define HUNK_RELRELOC32 1021
38 #define HUNK_ABSRELOC16 1022
40 /* Hunk sub-types */
41 #define EXT_SYMB 0 /* symbol table */
42 #define EXT_DEF 1 /* definition for relocatable hunks */
43 #define EXT_ABS 2 /* definition for absolute hunks */
44 #define EXT_REF32 129 /* 32bit absolute reference to symbol*/
45 #define EXT_ABSREF32 129
46 #define EXT_COMMON 130 /* 32bit absolute reference to common block */
47 #define EXT_ABSCOMMON 130
48 #define EXT_REF16 131 /* 16bit relative reference to symbol */
49 #define EXT_RELREF16 131
50 #define EXT_REF8 132 /* 8bit relative reference to symbol */
51 #define EXT_RELREF8 132
52 #define EXT_DEXT32 133 /* 32bit relative data */
53 #define EXT_DEXT16 134 /* 16bit relative data */
54 #define EXT_DEXT8 135 /* 8bit relative data */
55 #define EXT_RELREF32 136 /* 32bit relative reference to symbol */
56 #define EXT_RELCOMMON 137 /* 32bit relative reference to common block */
57 #define EXT_ABSREF16 138
58 #define EXT_ABSREF8 139
60 /* Hunk flags */
61 #define HUNKB_ADVISORY 29 /* Hunk is ignored, if unknown to loader. */
62 #define HUNKB_CHIP 30
63 #define HUNKB_FAST 31
64 #define HUNKF_ADVISORY (1L<<HUNKB_ADVISORY)
65 #define HUNKF_CHIP (1L<<HUNKB_CHIP)
66 #define HUNKF_FAST (1L<<HUNKB_FAST)
68 #endif /* DOS_DOSHUNKS_H */