Commit | Line | Data |
---|---|---|
5b93d8bb | 1 | /* tc-i370.h -- Header file for tc-i370.c. |
2571583a | 2 | Copyright (C) 1994-2017 Free Software Foundation, Inc. |
5b93d8bb AM |
3 | Written by Ian Lance Taylor, Cygnus Support. |
4 | ||
5 | This file is part of GAS, the GNU Assembler. | |
6 | ||
7 | GAS is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
ec2655a6 | 9 | the Free Software Foundation; either version 3, or (at your option) |
5b93d8bb AM |
10 | any later version. |
11 | ||
12 | GAS is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with GAS; see the file COPYING. If not, write to the Free | |
4b4da160 NC |
19 | Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA |
20 | 02110-1301, USA. */ | |
5b93d8bb AM |
21 | |
22 | #define TC_I370 | |
23 | ||
5b93d8bb | 24 | struct fix; |
5b93d8bb AM |
25 | |
26 | /* Set the endianness we are using. Default to big endian. */ | |
27 | #ifndef TARGET_BYTES_BIG_ENDIAN | |
28 | #define TARGET_BYTES_BIG_ENDIAN 1 | |
29 | #endif | |
30 | ||
5b93d8bb AM |
31 | /* The target BFD architecture. */ |
32 | #define TARGET_ARCH (i370_arch ()) | |
ea1562b3 | 33 | extern enum bfd_architecture i370_arch (void); |
5b93d8bb | 34 | |
ea1562b3 | 35 | /* Whether or not the target is big endian. */ |
5b93d8bb AM |
36 | extern int target_big_endian; |
37 | ||
38 | /* The target BFD format. */ | |
5b93d8bb | 39 | #define TARGET_FORMAT ("elf32-i370") |
5b93d8bb AM |
40 | |
41 | /* Permit temporary numeric labels. */ | |
42 | #define LOCAL_LABELS_FB 1 | |
43 | ||
44 | /* $ is used to refer to the current location. */ | |
45 | /* #define DOLLAR_DOT */ | |
46 | ||
ea1562b3 NC |
47 | /* foo-. gets turned into PC relative relocs. */ |
48 | #define DIFF_EXPR_OK | |
a161fe53 | 49 | |
55cf6793 | 50 | /* Values passed to md_apply_fix don't include the symbol value. */ |
a161fe53 | 51 | #define MD_APPLY_SYM_VALUE(FIX) 0 |
5b93d8bb AM |
52 | |
53 | /* We don't need to handle .word strangely. */ | |
54 | #define WORKING_DOT_WORD | |
55 | ||
94f592af | 56 | /* Call md_pcrel_from_section, not md_pcrel_from. */ |
ea1562b3 NC |
57 | #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC) |
58 | extern long md_pcrel_from_section (struct fix *, segT); | |
5b93d8bb AM |
59 | |
60 | #define md_operand(x) | |
184e65b1 TR |
61 | |
62 | #define tc_comment_chars i370_comment_chars | |
63 | extern const char *i370_comment_chars; |