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