Add support for DragonFlyBSD target.
[binutils.git] / gas / config / obj-evax.h
blob4964bd4c4a99e454ec309c63900d45b174a5ad6c
1 /* This file is obj-evax.h
2 Copyright 1996, 2000, 2005, 2007, 2009, 2010
3 Free Software Foundation, Inc.
4 Contributed by Klaus Kämpf (kkaempf@progis.de) of
5 proGIS Software, Aachen, Germany.
7 This file is part of GAS, the GNU Assembler.
9 GAS is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3, or (at your option)
12 any later version.
14 GAS is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with GAS; see the file COPYING. If not, write to
21 the Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
22 MA 02110-1301, USA. */
25 * This file is obj-evax.h and is intended to be a template for
26 * object format specific header files.
29 #include "as.h"
31 /* define an obj specific macro off which target cpu back ends may key. */
32 #define OBJ_EVAX 1
34 /* include whatever target cpu is appropriate. */
35 #include "targ-cpu.h"
37 #define OUTPUT_FLAVOR bfd_target_evax_flavour
39 struct fix;
41 struct alpha_linkage_fixups
43 struct alpha_linkage_fixups *next;
44 struct fix *fixp;
45 segT seg;
46 symbolS *label;
50 * SYMBOLS
54 * If your object format needs to reorder symbols, define this. When
55 * defined, symbols are kept on a doubly linked list and functions are
56 * made available for push, insert, append, and delete. If not defined,
57 * symbols are kept on a singly linked list, only the append and clear
58 * facilities are available, and they are macros.
61 /* #define SYMBOLS_NEED_PACKPOINTERS */
63 /* */
64 typedef struct
66 void *nothing;
68 obj_symbol_type; /* should be the format's symbol structure */
70 typedef void *object_headers;
72 #define OBJ_EMIT_LINENO(a,b,c) /* must be *something*. This no-op's it out. */
74 /* This field keeps the symbols position in the link section. */
75 #define OBJ_SYMFIELD_TYPE valueT
77 #define obj_symbol_new_hook(s) evax_symbol_new_hook (s)
78 #define obj_frob_symbol(s,p) evax_frob_symbol (s, &p)
79 #define obj_frob_file_before_adjust evax_frob_file_before_adjust
80 #define obj_frob_file_before_fix evax_frob_file_before_fix
82 #define S_GET_OTHER(S) 0
83 #define S_GET_TYPE(S) 0
84 #define S_GET_DESC(S) 0
86 #define PDSC_S_K_KIND_FP_STACK 9
87 #define PDSC_S_K_KIND_FP_REGISTER 10
88 #define PDSC_S_K_KIND_NULL 8
90 #define PDSC_S_K_MIN_STACK_SIZE 32
91 #define PDSC_S_K_MIN_REGISTER_SIZE 24
92 #define PDSC_S_K_NULL_SIZE 16
94 #define PDSC_S_M_HANDLER_VALID 0x10 /* low byte */
95 #define PDSC_S_M_HANDLER_DATA_VALID 0x40 /* low byte */
96 #define PDSC_S_M_BASE_REG_IS_FP 0x80 /* low byte */
97 #define PDSC_S_M_NATIVE 0x10 /* high byte */
98 #define PDSC_S_M_NO_JACKET 0x20 /* high byte */
100 #define LKP_S_K_SIZE 16
102 extern segT alpha_link_section;
103 extern struct alpha_linkage_fixups *alpha_linkage_fixup_root;
105 extern void evax_section (int);
106 extern void evax_symbol_new_hook (symbolS *);
107 extern void evax_frob_symbol (symbolS *, int *);
108 extern void evax_frob_file_before_adjust (void);
109 extern void evax_frob_file_before_fix (void);
110 extern char *evax_shorten_name (char *);
113 * Local Variables:
114 * comment-column: 0
115 * fill-column: 131
116 * End: