1 /* BFD back-end for Intel 386 COFF LynxOS files.
2 Copyright 1993 Free Software Foundation, Inc.
3 Written by Cygnus Support.
5 This file is part of BFD, the Binary File Descriptor library.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
21 #define TARGET_SYM i386lynx_coff_vec
22 #define TARGET_NAME "coff-i386-lynx"
26 #define COFF_LONG_FILENAMES
28 #include "coff-i386.c"
31 i386_lynxos_coff_object_p(a
)
34 return coff_object_p(a
);
40 #define TARGET_SYM i386lynx_sysv_coff_vec
42 #define TARGET_NAME "coff-i386-lynx-sysv"
44 /* Another almost-copy of the vector in coff-i386.c. */
56 "coff-i386", /* name */
58 bfd_target_coff_flavour
,
59 false, /* data byte order is little */
60 false, /* header byte order is little */
62 (HAS_RELOC
| EXEC_P
| /* object flags */
63 HAS_LINENO
| HAS_DEBUG
|
64 HAS_SYMS
| HAS_LOCALS
| DYNAMIC
| WP_TEXT
),
66 (SEC_HAS_CONTENTS
| SEC_ALLOC
| SEC_LOAD
| SEC_RELOC
), /* section flags */
67 0, /* leading underscore */
68 '/', /* ar_pad_char */
69 15, /* ar_max_namelen */
71 2, /* minimum alignment power */
72 bfd_getl64
, bfd_getl_signed_64
, bfd_putl64
,
73 bfd_getl32
, bfd_getl_signed_32
, bfd_putl32
,
74 bfd_getl16
, bfd_getl_signed_16
, bfd_putl16
, /* data */
75 bfd_getl64
, bfd_getl_signed_64
, bfd_putl64
,
76 bfd_getl32
, bfd_getl_signed_32
, bfd_putl32
,
77 bfd_getl16
, bfd_getl_signed_16
, bfd_putl16
, /* hdrs */
79 /* Note that we allow an object file to be treated as a core file as well. */
80 {_bfd_dummy_target
, i3coff_object_p
, /* bfd_check_format */
81 bfd_generic_archive_p
, i3coff_object_p
},
82 {bfd_false
, coff_mkobject
, _bfd_generic_mkarchive
, /* bfd_set_format */
84 {bfd_false
, coff_write_object_contents
, /* bfd_write_contents */
85 _bfd_write_archive_contents
, bfd_false
},
87 BFD_JUMP_TABLE_GENERIC (coff
),
88 BFD_JUMP_TABLE_COPY (coff
),
89 BFD_JUMP_TABLE_CORE (_bfd_nocore
),
90 BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff
),
91 BFD_JUMP_TABLE_SYMBOLS (coff
),
92 BFD_JUMP_TABLE_RELOCS (coff
),
93 BFD_JUMP_TABLE_WRITE (coff
),
94 BFD_JUMP_TABLE_LINK (coff
),