Fix copyright notices
[deliverable/binutils-gdb.git] / gas / config / tc-i370.h
1 /* tc-i370.h -- Header file for tc-i370.c.
2 Copyright 1994, 1995, 1996, 1997, 1998, 2000
3 Free Software Foundation, Inc.
4 Written by Ian Lance Taylor, Cygnus Support.
5
6 This file is part of GAS, the GNU Assembler.
7
8 GAS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 GAS is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GAS; see the file COPYING. If not, write to the Free
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
21 02111-1307, USA. */
22
23 #define TC_I370
24
25 #ifdef ANSI_PROTOTYPES
26 struct fix;
27 #endif
28
29 /* Set the endianness we are using. Default to big endian. */
30 #ifndef TARGET_BYTES_BIG_ENDIAN
31 #define TARGET_BYTES_BIG_ENDIAN 1
32 #endif
33
34 #ifndef BFD_ASSEMBLER
35 #error I370 support requires BFD_ASSEMBLER
36 #endif
37
38 /* The target BFD architecture. */
39 #define TARGET_ARCH (i370_arch ())
40 extern enum bfd_architecture i370_arch PARAMS ((void));
41
42 /* Whether or not the target is big endian */
43 extern int target_big_endian;
44
45 /* The target BFD format. */
46 #ifdef OBJ_ELF
47 #define TARGET_FORMAT ("elf32-i370")
48 #endif
49
50 /* Permit temporary numeric labels. */
51 #define LOCAL_LABELS_FB 1
52
53 /* $ is used to refer to the current location. */
54 /* #define DOLLAR_DOT */
55
56 #ifdef OBJ_ELF
57 #define DIFF_EXPR_OK /* foo-. gets turned into PC relative relocs */
58 #endif
59
60 /* We don't need to handle .word strangely. */
61 #define WORKING_DOT_WORD
62
63 /* We set the fx_done field appropriately in md_apply_fix. */
64 #define TC_HANDLES_FX_DONE
65 \f
66
67 #ifdef OBJ_ELF
68
69 /* Branch prediction relocations must force relocation. */
70 #define TC_FORCE_RELOCATION_SECTION(FIXP,SEC) 1
71
72 /* Support for SHF_EXCLUDE and SHT_ORDERED */
73 extern int i370_section_letter PARAMS ((int, char **));
74 extern int i370_section_type PARAMS ((char *, size_t));
75 extern int i370_section_word PARAMS ((char *, size_t));
76 extern int i370_section_flags PARAMS ((int, int, int));
77
78 #define md_elf_section_letter(LETTER, PTR_MSG) i370_section_letter (LETTER, PTR_MSG)
79 #define md_elf_section_type(STR, LEN) i370_section_type (STR, LEN)
80 #define md_elf_section_word(STR, LEN) i370_section_word (STR, LEN)
81 #define md_elf_section_flags(FLAGS, ATTR, TYPE) i370_section_flags (FLAGS, ATTR, TYPE)
82
83 #define tc_comment_chars i370_comment_chars
84 extern const char *i370_comment_chars;
85
86 /* We must never ever try to resolve references to externally visible
87 symbols in the assembler, because the .o file might go into a shared
88 library, and some other shared library might override that symbol. */
89 #define TC_RELOC_RTSYM_LOC_FIXUP(FIX) \
90 ((FIX)->fx_addsy == NULL \
91 || (! S_IS_EXTERNAL ((FIX)->fx_addsy) \
92 && ! S_IS_WEAK ((FIX)->fx_addsy) \
93 && S_IS_DEFINED ((FIX)->fx_addsy) \
94 && ! S_IS_COMMON ((FIX)->fx_addsy)))
95
96 #endif /* OBJ_ELF */
97
98 /* call md_apply_fix3 with segment instead of md_apply_fix */
99 #define MD_APPLY_FIX3
100
101 /* call md_pcrel_from_section, not md_pcrel_from */
102 #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section(FIXP, SEC)
103 extern long md_pcrel_from_section PARAMS ((struct fix *, segT));
104
105 #define md_operand(x)
This page took 0.038098 seconds and 4 git commands to generate.