Commit | Line | Data |
---|---|---|
4f1d9bd8 NC |
1 | /* coff information for Intel 860. |
2 | ||
3 | Copyright 2001 Free Software Foundation, Inc. | |
4 | ||
5 | This program is free software; you can redistribute it and/or modify | |
6 | it under the terms of the GNU General Public License as published by | |
7 | the Free Software Foundation; either version 2 of the License, or | |
8 | (at your option) any later version. | |
9 | ||
10 | This program is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | GNU General Public License for more details. | |
14 | ||
15 | You should have received a copy of the GNU General Public License | |
16 | along with this program; if not, write to the Free Software | |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | |
252b5132 | 18 | |
4f1d9bd8 | 19 | /* This file was hacked from i386.h [dolan@ssd.intel.com] */ |
252b5132 | 20 | |
4f1d9bd8 NC |
21 | #define L_LNNO_SIZE 2 |
22 | #include "coff/external.h" | |
252b5132 RH |
23 | |
24 | /* Bits for f_flags: | |
4f1d9bd8 NC |
25 | F_RELFLG relocation info stripped from file |
26 | F_EXEC file is executable (no unresolved external references) | |
27 | F_LNNO line numbers stripped from file | |
28 | F_LSYMS local symbols stripped from file | |
29 | F_AR32WR file has byte ordering of an AR32WR machine (e.g. vax). */ | |
252b5132 RH |
30 | |
31 | #define F_RELFLG (0x0001) | |
32 | #define F_EXEC (0x0002) | |
33 | #define F_LNNO (0x0004) | |
34 | #define F_LSYMS (0x0008) | |
35 | ||
252b5132 RH |
36 | #define I860MAGIC 0x14d |
37 | ||
38 | #define I860BADMAG(x) ((x).f_magic != I860MAGIC) | |
39 | ||
252b5132 RH |
40 | /* FIXME: What are the a.out magic numbers? */ |
41 | ||
4f1d9bd8 | 42 | #define _ETEXT "etext" |
252b5132 RH |
43 | |
44 | /********************** RELOCATION DIRECTIVES **********************/ | |
45 | ||
4f1d9bd8 NC |
46 | struct external_reloc |
47 | { | |
252b5132 RH |
48 | char r_vaddr[4]; |
49 | char r_symndx[4]; | |
50 | char r_type[2]; | |
51 | }; | |
52 | ||
252b5132 RH |
53 | #define RELOC struct external_reloc |
54 | #define RELSZ 10 |