* som.c (hppa_som_gen_reloc_type): Choose a reasonable field
[deliverable/binutils-gdb.git] / bfd / cf-i386lynx.c
CommitLineData
6812b607
ILT
1/* BFD back-end for Intel 386 COFF LynxOS files.
2 Copyright 1993 Free Software Foundation, Inc.
3 Written by Cygnus Support.
4
5This file is part of BFD, the Binary File Descriptor library.
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
20
21#define TARGET_SYM i386lynx_coff_vec
22#define TARGET_NAME "coff-i386-lynx"
23
24#define LYNXOS
25
26#define COFF_LONG_FILENAMES
27
28#include "coff-i386.c"
29
30static bfd_target *
31i386_lynxos_coff_object_p(a)
32 bfd *a;
33{
34 return coff_object_p(a);
35}
36
37#if 0
38
39#undef TARGET_SYM
40#define TARGET_SYM i386lynx_sysv_coff_vec
41#undef TARGET_NAME
42#define TARGET_NAME "coff-i386-lynx-sysv"
43
44/* Another almost-copy of the vector in coff-i386.c. */
45
46bfd_target
47#ifdef TARGET_SYM
48 TARGET_SYM =
49#else
50 i386coff_vec =
51#endif
52{
53#ifdef TARGET_NAME
54 TARGET_NAME,
55#else
56 "coff-i386", /* name */
57#endif
58 bfd_target_coff_flavour,
59 false, /* data byte order is little */
60 false, /* header byte order is little */
61
62 (HAS_RELOC | EXEC_P | /* object flags */
63 HAS_LINENO | HAS_DEBUG |
64 HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT),
65
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 */
70
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 */
78
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 */
83 bfd_false},
84 {bfd_false, coff_write_object_contents, /* bfd_write_contents */
85 _bfd_write_archive_contents, bfd_false},
86
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),
95
96 COFF_SWAP_TABLE,
97};
98#endif
This page took 0.057917 seconds and 4 git commands to generate.