]> Git Repo - binutils.git/blame - bfd/coff-mips.c
* all files: update copyright notices for GPL version 2.
[binutils.git] / bfd / coff-mips.c
CommitLineData
1327fb29 1/* MIPS Extended-Coff handler for Binary File Diddling.
b1847ba9 2 Written by Per Bothner. */
1327fb29 3
23b0b558
JG
4/* Copyright (C) 1990, 1991 Free Software Foundation, Inc.
5
6This file is part of BFD, the Binary File Diddler.
7
8BFD is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 1, or (at your option)
11any later version.
12
13BFD is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with BFD; see the file COPYING. If not, write to
20the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
1327fb29
SC
21
22/* This does not compile on anything but a MIPS yet (and I haven't been
23 able to test it there either since the latest merge!). So it stays
24 out by default. */
1327fb29 25
7ed4093a 26#include <sysdep.h>
1327fb29 27#define MIPS 1
23b0b558 28#include "bfd.h"
1327fb29 29#include "libbfd.h"
19b03b7a 30
1327fb29 31
41f50af0
SC
32#include "ecoff.h"
33#include "internalcoff.h"
23b0b558 34#include "libcoff.h" /* to allow easier abstraction-breaking */
1327fb29 35
8e3c8f47 36#define BADMAG(x) ECOFFBADMAG(x)
2b1d8a50 37
7ed4093a 38#include "coffcode.h"
1327fb29
SC
39bfd_target ecoff_little_vec =
40 {"ecoff-littlemips", /* name */
2b1d8a50
JG
41 bfd_target_coff_flavour_enum,
42 false, /* data byte order is little */
43 false, /* header byte order is little */
1327fb29 44
2b1d8a50
JG
45 (HAS_RELOC | EXEC_P | /* object flags */
46 HAS_LINENO | HAS_DEBUG |
47 HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT),
1327fb29 48
2b1d8a50
JG
49 (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* sect flags */
50 '/', /* ar_pad_char */
51 15, /* ar_max_namelen */
41f50af0 52 3, /* minimum alignment power */
19b03b7a
SC
53_do_getl64, _do_putl64, _do_getl32, _do_putl32, _do_getl16, _do_putl16, /* data */
54_do_getl64, _do_putl64, _do_getl32, _do_putl32, _do_getl16, _do_putl16, /* hdrs */
1327fb29 55
8e3c8f47 56 {_bfd_dummy_target, coff_object_p, /* bfd_check_format */
1327fb29 57 bfd_generic_archive_p, _bfd_dummy_target},
8e3c8f47 58 {bfd_false, coff_mkobject, bfd_false, /* bfd_set_format */
1327fb29 59 bfd_false},
8e3c8f47
SC
60 {bfd_false, coff_write_object_contents, bfd_false, bfd_false},
61 JUMP_TABLE (coff)
23b0b558 62};
1327fb29
SC
63
64bfd_target ecoff_big_vec =
65 {"ecoff-bigmips", /* name */
2b1d8a50
JG
66 bfd_target_coff_flavour_enum,
67 true, /* data byte order is big */
68 true, /* header byte order is big */
1327fb29 69
2b1d8a50
JG
70 (HAS_RELOC | EXEC_P | /* object flags */
71 HAS_LINENO | HAS_DEBUG |
72 HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT),
1327fb29 73
2b1d8a50
JG
74 (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* sect flags */
75 ' ', /* ar_pad_char */
76 16, /* ar_max_namelen */
41f50af0 77 3, /* minimum alignment power */
19b03b7a
SC
78_do_getb64, _do_putb64, _do_getb32, _do_putb32, _do_getb16, _do_putb16, /* data */
79_do_getb64, _do_putb64, _do_getb32, _do_putb32, _do_getb16, _do_putb16, /* hdrs */
8e3c8f47 80 {_bfd_dummy_target, coff_object_p, /* bfd_check_format */
1327fb29 81 bfd_generic_archive_p, _bfd_dummy_target},
8e3c8f47 82 {bfd_false, coff_mkobject, bfd_false, /* bfd_set_format */
1327fb29 83 bfd_false},
8e3c8f47 84 {bfd_false, coff_write_object_contents, /* bfd_write_contents */
2b1d8a50 85 bfd_false, bfd_false},
2700c3c7
SC
86 JUMP_TABLE(coff),
87 COFF_SWAP_TABLE
23b0b558 88};
This page took 0.054356 seconds and 4 git commands to generate.