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