1 /* BFD back-end for Texas Instruments TMS320C80 Multimedia Video Processor (MVP).
2 Copyright 1996 Free Software Foundation, Inc.
4 Written by Fred Fish (fnf@cygnus.com)
6 There is nothing new under the sun. This file draws a lot on other
9 This file is part of BFD, the Binary File Descriptor library.
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 (at your option) any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
29 #include "coff/tic80.h"
30 #include "coff/internal.h"
33 #define COFF_DEFAULT_SECTION_ALIGNMENT_POWER (4) /* FIXME: What should this be? */
35 #define coff_relocate_section _bfd_coff_generic_relocate_section
37 #define RTYPE2HOWTO(internal, relocentry) abort() /* FIXME: hack */
40 #define BADMAG(x) TIC80BADMAG(x)
43 #define TIC80 1 /* Customize coffcode.h */
56 "coff-tic80", /* name */
58 bfd_target_coff_flavour,
59 BFD_ENDIAN_BIG, /* data byte order is big */
60 BFD_ENDIAN_BIG, /* header byte order is big */
62 (HAS_RELOC | EXEC_P | /* object flags */
63 HAS_LINENO | HAS_DEBUG |
64 HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
66 (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
67 #ifdef NAMES_HAVE_UNDERSCORE
70 0, /* leading underscore */
72 '/', /* ar_pad_char */
73 15, /* ar_max_namelen */
74 bfd_getb64, bfd_getb_signed_64, bfd_putb64,
75 bfd_getb32, bfd_getb_signed_32, bfd_putb32,
76 bfd_getb16, bfd_getb_signed_16, bfd_putb16, /* data */
77 bfd_getb64, bfd_getb_signed_64, bfd_putb64,
78 bfd_getb32, bfd_getb_signed_32, bfd_putb32,
79 bfd_getb16, bfd_getb_signed_16, bfd_putb16, /* hdrs */
81 {_bfd_dummy_target, coff_object_p, /* bfd_check_format */
82 bfd_generic_archive_p, _bfd_dummy_target},
83 {bfd_false, coff_mkobject, _bfd_generic_mkarchive, /* bfd_set_format */
85 {bfd_false, coff_write_object_contents, /* bfd_write_contents */
86 _bfd_write_archive_contents, bfd_false},
88 BFD_JUMP_TABLE_GENERIC (coff),
89 BFD_JUMP_TABLE_COPY (coff),
90 BFD_JUMP_TABLE_CORE (_bfd_nocore),
91 BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff),
92 BFD_JUMP_TABLE_SYMBOLS (coff),
93 BFD_JUMP_TABLE_RELOCS (coff),
94 BFD_JUMP_TABLE_WRITE (coff),
95 BFD_JUMP_TABLE_LINK (coff),
96 BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),