* remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
[deliverable/binutils-gdb.git] / bfd / nlm-target.h
CommitLineData
d1f83f44 1/* Target definitions for 32/64-bit NLM (NetWare Loadable Module)
c3e964b9
FF
2 Copyright (C) 1993 Free Software Foundation, Inc.
3
4This file is part of BFD, the Binary File Descriptor library.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20/* This structure contains everything that BFD knows about a target.
21 It includes things like its byte order, name, what routines to call
22 to do various operations, etc. Every BFD points to a target structure
23 with its "xvec" member.
24
25 There are two such structures here: one for big-endian machines and
26 one for little-endian machines. */
27
c3e964b9
FF
28
29#ifdef TARGET_BIG_SYM
30bfd_target TARGET_BIG_SYM =
31{
32 /* name: identify kind of target */
33 TARGET_BIG_NAME,
34
35 /* flavour: general indication about file */
36 bfd_target_nlm_flavour,
37
38 /* byteorder_big_p: data is big endian */
39 true,
40
41 /* header_byteorder_big_p: header is also big endian */
42 true,
43
44 /* object_flags: mask of all file flags */
45 (HAS_RELOC | EXEC_P | HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS |
46 DYNAMIC | WP_TEXT),
47
48 /* section_flags: mask of all section flags */
49 (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_READONLY |
50 SEC_CODE | SEC_DATA),
51
52 /* leading_symbol_char: is the first char of a user symbol
53 predictable, and if so what is it */
54 0,
55
56 /* ar_pad_char: pad character for filenames within an archive header
57 FIXME: this really has nothing to do with NLM, this is a characteristic
58 of the archiver and/or os and should be independently tunable */
59 '/',
60
61 /* ar_max_namelen: maximum number of characters in an archive header
62 FIXME: this really has nothing to do with NLM, this is a characteristic
63 of the archiver and should be independently tunable. This value is
64 a WAG (wild a** guess) */
65 15,
66
67 /* align_power_min: minimum alignment restriction for any section
68 FIXME: this value may be target machine dependent */
69 3,
70
71 /* Routines to byte-swap various sized integers from the data sections */
72 _do_getb64, _do_getb_signed_64, _do_putb64,
73 _do_getb32, _do_getb_signed_32, _do_putb32,
74 _do_getb16, _do_getb_signed_16, _do_putb16,
75
76 /* Routines to byte-swap various sized integers from the file headers */
77 _do_getb64, _do_getb_signed_64, _do_putb64,
78 _do_getb32, _do_getb_signed_32, _do_putb32,
79 _do_getb16, _do_getb_signed_16, _do_putb16,
80
81 /* bfd_check_format: check the format of a file being read */
82 { _bfd_dummy_target, /* unknown format */
d1f83f44 83 nlmNAME(object_p), /* assembler/linker output (object file) */
c3e964b9 84 bfd_generic_archive_p, /* an archive */
d1f83f44 85 nlmNAME(core_file_p) /* a core file */
c3e964b9
FF
86 },
87
88 /* bfd_set_format: set the format of a file being written */
89 { bfd_false,
d1f83f44 90 nlm_mkobject,
c3e964b9
FF
91 _bfd_generic_mkarchive,
92 bfd_false
93 },
94
95 /* bfd_write_contents: write cached information into a file being written */
96 { bfd_false,
d1f83f44 97 nlmNAME(write_object_contents),
c3e964b9
FF
98 _bfd_write_archive_contents,
99 bfd_false
100 },
101
102 /* Initialize a jump table with the standard macro. All names start with
103 "nlm" */
d1f83f44 104 JUMP_TABLE(JUMP_TABLE_PREFIX),
c3e964b9
FF
105
106 /* backend_data: */
107 (PTR) NULL,
108};
109#endif
110
111#ifdef TARGET_LITTLE_SYM
112bfd_target TARGET_LITTLE_SYM =
113{
114 /* name: identify kind of target */
115 TARGET_LITTLE_NAME,
116
117 /* flavour: general indication about file */
118 bfd_target_nlm_flavour,
119
120 /* byteorder_big_p: data is big endian */
121 false, /* Nope -- this one's little endian */
122
123 /* header_byteorder_big_p: header is also big endian */
124 false, /* Nope -- this one's little endian */
125
126 /* object_flags: mask of all file flags */
127 (HAS_RELOC | EXEC_P | HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS |
128 DYNAMIC | WP_TEXT),
129
130 /* section_flags: mask of all section flags */
131 (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_READONLY |
132 SEC_DATA),
133
134 /* leading_symbol_char: is the first char of a user symbol
135 predictable, and if so what is it */
136 0,
137
138 /* ar_pad_char: pad character for filenames within an archive header
139 FIXME: this really has nothing to do with NLM, this is a characteristic
140 of the archiver and/or os and should be independently tunable */
141 '/',
142
143 /* ar_max_namelen: maximum number of characters in an archive header
144 FIXME: this really has nothing to do with NLM, this is a characteristic
145 of the archiver and should be independently tunable. This value is
146 a WAG (wild a** guess) */
147 15,
148
149 /* align_power_min: minimum alignment restriction for any section
150 FIXME: this value may be target machine dependent */
151 3,
152
153 /* Routines to byte-swap various sized integers from the data sections */
154 _do_getl64, _do_getl_signed_64, _do_putl64,
155 _do_getl32, _do_getl_signed_32, _do_putl32,
156 _do_getl16, _do_getl_signed_16, _do_putl16,
157
158 /* Routines to byte-swap various sized integers from the file headers */
159 _do_getl64, _do_getl_signed_64, _do_putl64,
160 _do_getl32, _do_getl_signed_32, _do_putl32,
161 _do_getl16, _do_getl_signed_16, _do_putl16,
162
163 /* bfd_check_format: check the format of a file being read */
164 { _bfd_dummy_target, /* unknown format */
d1f83f44 165 nlmNAME(object_p), /* assembler/linker output (object file) */
c3e964b9 166 bfd_generic_archive_p, /* an archive */
d1f83f44 167 nlmNAME(core_file_p) /* a core file */
c3e964b9
FF
168 },
169
170 /* bfd_set_format: set the format of a file being written */
171 { bfd_false,
d1f83f44 172 nlm_mkobject,
c3e964b9
FF
173 _bfd_generic_mkarchive,
174 bfd_false
175 },
176
177 /* bfd_write_contents: write cached information into a file being written */
178 { bfd_false,
d1f83f44 179 nlmNAME(write_object_contents),
c3e964b9
FF
180 _bfd_write_archive_contents,
181 bfd_false
182 },
183
184 /* Initialize a jump table with the standard macro. All names start with
185 "nlm" */
d1f83f44 186 JUMP_TABLE(JUMP_TABLE_PREFIX),
c3e964b9
FF
187
188 /* backend_data: */
189 (PTR) NULL,
190};
191#endif
This page took 0.054974 seconds and 4 git commands to generate.