Back to index

cell-binutils  2.17cvs20070401
tic4x.h
Go to the documentation of this file.
00001 /* TI COFF information for Texas Instruments TMS320C4X/C3X.
00002    This file customizes the settings in coff/ti.h. 
00003    
00004    Copyright 2002, 2003 Free Software Foundation, Inc.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015    
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00019 
00020 #ifndef COFF_TIC4X_H
00021 #define COFF_TIC4X_H
00022 
00023 #define TIC4X_TARGET_ID     0x0093
00024 /* Octets per byte, as a power of two.  */
00025 #define TI_TARGET_ID               TIC4X_TARGET_ID
00026 #define OCTETS_PER_BYTE_POWER      2 
00027 /* Add to howto to get absolute/sect-relative version.  */
00028 #define HOWTO_BANK          6             
00029 #define TICOFF_TARGET_ARCH  bfd_arch_tic4x
00030 /* We use COFF2.  */
00031 #define TICOFF_DEFAULT_MAGIC       TICOFF2MAGIC 
00032 
00033 #define TICOFF_TARGET_MACHINE_GET(FLAGS) \
00034   (((FLAGS) & F_VERS) ? bfd_mach_tic4x : bfd_mach_tic3x)
00035 
00036 #define TICOFF_TARGET_MACHINE_SET(FLAGSP, MACHINE)      \
00037   do                                             \
00038     {                                            \
00039       if ((MACHINE) == bfd_mach_tic4x)                  \
00040         *(FLAGSP) |= F_VERS;                            \
00041     }                                            \
00042   while (0)
00043 
00044 #include "coff/ti.h"
00045 
00046 #endif /* COFF_TIC4X_H */