1 |
/* coff information for Intel 860. |
/* COFF information for the Intel i860. |
2 |
|
|
3 |
Copyright 2001 Free Software Foundation, Inc. |
Copyright 2001, 2003 Free Software Foundation, Inc. |
4 |
|
|
5 |
This program is free software; you can redistribute it and/or modify |
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 |
it under the terms of the GNU General Public License as published by |
37 |
|
|
38 |
#define I860BADMAG(x) ((x).f_magic != I860MAGIC) |
#define I860BADMAG(x) ((x).f_magic != I860MAGIC) |
39 |
|
|
40 |
|
#undef AOUTSZ |
41 |
|
#define AOUTSZ 36 |
42 |
|
|
43 |
/* FIXME: What are the a.out magic numbers? */ |
/* FIXME: What are the a.out magic numbers? */ |
44 |
|
|
45 |
#define _ETEXT "etext" |
#define _ETEXT "etext" |
55 |
|
|
56 |
#define RELOC struct external_reloc |
#define RELOC struct external_reloc |
57 |
#define RELSZ 10 |
#define RELSZ 10 |
58 |
|
|
59 |
|
/* The relocation directory entry types. |
60 |
|
PAIR : The low half that follows relates to the preceeding HIGH[ADJ]. |
61 |
|
HIGH : The high half of a 32-bit constant. |
62 |
|
LOWn : The low half, insn bits 15..(n-1), 2^n-byte aligned. |
63 |
|
SPLITn : The low half, insn bits 20..16 and 10..(n-1), 2^n-byte aligned. |
64 |
|
HIGHADJ: Similar to HIGH, but with adjustment. |
65 |
|
BRADDR : 26-bit branch displacement. |
66 |
|
|
67 |
|
Note: The Intel assembler manual lists LOW4 as one of the |
68 |
|
relocation types, but it appears to be useless for the i860. |
69 |
|
We will recognize it anyway, just in case it actually appears in |
70 |
|
any object files. */ |
71 |
|
|
72 |
|
enum { |
73 |
|
COFF860_R_PAIR = 0x1c, |
74 |
|
COFF860_R_HIGH = 0x1e, |
75 |
|
COFF860_R_LOW0 = 0x1f, |
76 |
|
COFF860_R_LOW1 = 0x20, |
77 |
|
COFF860_R_LOW2 = 0x21, |
78 |
|
COFF860_R_LOW3 = 0x22, |
79 |
|
COFF860_R_LOW4 = 0x23, |
80 |
|
COFF860_R_SPLIT0 = 0x24, |
81 |
|
COFF860_R_SPLIT1 = 0x25, |
82 |
|
COFF860_R_SPLIT2 = 0x26, |
83 |
|
COFF860_R_HIGHADJ = 0x27, |
84 |
|
COFF860_R_BRADDR = 0x28 |
85 |
|
}; |
86 |
|
|