]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/config/obj-evax.h
Thu Aug 8 12:32:56 1996 Klaus Kaempf <kkaempf@progis.de>
[thirdparty/binutils-gdb.git] / gas / config / obj-evax.h
1 /* This file is obj-evax.h
2 Copyright (C) 1996 Free Software Foundation, Inc.
3 Contributed by Klaus Kämpf (kkaempf@progis.de) of
4 proGIS Software, Aachen, Germany.
5
6 This file is part of GAS, the GNU Assembler.
7
8 GAS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 GAS is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GAS; see the file COPYING. If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330, Boston,
21 MA 02111-1307, USA. */
22
23 /*
24 * This file is obj-evax.h and is intended to be a template for
25 * object format specific header files.
26 */
27
28 /* define an obj specific macro off which target cpu back ends may key. */
29 #define OBJ_EVAX 1
30
31 /* include whatever target cpu is appropriate. */
32 #include "targ-cpu.h"
33
34 #ifdef BFD_ASSEMBLER
35 #define OUTPUT_FLAVOR bfd_target_evax_flavour
36 #endif
37
38 /*
39 * SYMBOLS
40 */
41
42 /*
43 * If your object format needs to reorder symbols, define this. When
44 * defined, symbols are kept on a doubly linked list and functions are
45 * made available for push, insert, append, and delete. If not defined,
46 * symbols are kept on a singly linked list, only the append and clear
47 * facilities are available, and they are macros.
48 */
49
50 /* #define SYMBOLS_NEED_PACKPOINTERS */
51
52 /* */
53 typedef struct
54 {
55 void *nothing;
56 }
57 obj_symbol_type; /* should be the format's symbol structure */
58
59 typedef void *object_headers;
60
61 #define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE (0) /* your magic number */
62
63 #define OBJ_EMIT_LINENO(a,b,c) /* must be *something*. This no-op's it out. */
64
65 #define obj_symbol_new_hook(s) {;}
66
67 #define S_SET_OTHER(S,V)
68 #define S_SET_TYPE(S,T)
69 #define S_SET_DESC(S,D)
70 #define S_GET_OTHER(S) 0
71 #define S_GET_TYPE(S) 0
72 #define S_GET_DESC(S) 0
73
74 #undef AXP_REG_GP
75 #define AXP_REG_GP AXP_REG_PV
76
77 #define PDSC_S_K_KIND_FP_STACK 9
78 #define PDSC_S_K_KIND_FP_REGISTER 10
79 #define PDSC_S_K_KIND_NULL 8
80
81 #define PDSC_S_K_MIN_STACK_SIZE 32
82 #define PDSC_S_K_MIN_REGISTER_SIZE 24
83 #define PDSC_S_K_NULL_SIZE 16
84
85 #define PDSC_S_M_BASE_REG_IS_FP 0x80 /* low byte */
86 #define PDSC_S_M_NATIVE 0x10 /* high byte */
87 #define PDSC_S_M_NO_JACKET 0x20 /* high byte */
88
89 #define LKP_S_K_SIZE 16
90
91 struct evaxProc {
92 symbolS *symbol; /* proc pdesc symbol */
93 int pdsckind;
94 int framereg; /* register for frame pointer */
95 int framesize; /* size of frame */
96 int rsa_offset;
97 int ra_save;
98 int fp_save;
99 long imask;
100 long fmask;
101 int type;
102 int prologue;
103 };
104
105 typedef struct evaxProc evaxProcT;
106 typedef struct evaxProc *evaxProcP;
107
108 /*
109 * Local Variables:
110 * comment-column: 0
111 * fill-column: 131
112 * End:
113 */
114
115 /* end of obj-evax.h */