xref: /openbsd-src/gnu/usr.bin/binutils/include/coff/tic4x.h (revision d2201f2f89f0be1a0be6f7568000ed297414a06d)
1*d2201f2fSdrahn /* TI COFF information for Texas Instruments TMS320C4X/C3X.
2*d2201f2fSdrahn    This file customizes the settings in coff/ti.h.
3*d2201f2fSdrahn 
4*d2201f2fSdrahn    Copyright 2002, 2003 Free Software Foundation, Inc.
5*d2201f2fSdrahn 
6*d2201f2fSdrahn    This program is free software; you can redistribute it and/or modify
7*d2201f2fSdrahn    it under the terms of the GNU General Public License as published by
8*d2201f2fSdrahn    the Free Software Foundation; either version 2 of the License, or
9*d2201f2fSdrahn    (at your option) any later version.
10*d2201f2fSdrahn 
11*d2201f2fSdrahn    This program is distributed in the hope that it will be useful,
12*d2201f2fSdrahn    but WITHOUT ANY WARRANTY; without even the implied warranty of
13*d2201f2fSdrahn    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*d2201f2fSdrahn    GNU General Public License for more details.
15*d2201f2fSdrahn 
16*d2201f2fSdrahn    You should have received a copy of the GNU General Public License
17*d2201f2fSdrahn    along with this program; if not, write to the Free Software
18*d2201f2fSdrahn    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
19*d2201f2fSdrahn 
20*d2201f2fSdrahn #ifndef COFF_TIC4X_H
21*d2201f2fSdrahn #define COFF_TIC4X_H
22*d2201f2fSdrahn 
23*d2201f2fSdrahn #define TIC4X_TARGET_ID 	0x0093
24*d2201f2fSdrahn /* Octets per byte, as a power of two.  */
25*d2201f2fSdrahn #define TI_TARGET_ID 		TIC4X_TARGET_ID
26*d2201f2fSdrahn #define OCTETS_PER_BYTE_POWER 	2
27*d2201f2fSdrahn /* Add to howto to get absolute/sect-relative version.  */
28*d2201f2fSdrahn #define HOWTO_BANK 		6
29*d2201f2fSdrahn #define TICOFF_TARGET_ARCH 	bfd_arch_tic4x
30*d2201f2fSdrahn /* We use COFF2.  */
31*d2201f2fSdrahn #define TICOFF_DEFAULT_MAGIC 	TICOFF2MAGIC
32*d2201f2fSdrahn 
33*d2201f2fSdrahn #define TICOFF_TARGET_MACHINE_GET(FLAGS) \
34*d2201f2fSdrahn   (((FLAGS) & F_VERS) ? bfd_mach_tic4x : bfd_mach_tic3x)
35*d2201f2fSdrahn 
36*d2201f2fSdrahn #define TICOFF_TARGET_MACHINE_SET(FLAGSP, MACHINE)	\
37*d2201f2fSdrahn   do							\
38*d2201f2fSdrahn     {							\
39*d2201f2fSdrahn       if ((MACHINE) == bfd_mach_tic4x)			\
40*d2201f2fSdrahn         *(FLAGSP) |= F_VERS;				\
41*d2201f2fSdrahn     }							\
42*d2201f2fSdrahn   while (0)
43*d2201f2fSdrahn 
44*d2201f2fSdrahn #include "coff/ti.h"
45*d2201f2fSdrahn 
46*d2201f2fSdrahn #endif /* COFF_TIC4X_H */
47