2001-06-24 H.J. Lu <hjl@gnu.org>
[binutils.git] / gas / tc.h
blob6becfb8c67d1538fa434699e8a63253c52d59c3f
1 /* tc.h - target cpu dependent
3 Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 2000
4 Free Software Foundation, Inc.
6 This file is part of GAS, the GNU Assembler.
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.
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.
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
20 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
22 /* In theory (mine, at least!) the machine dependent part of the assembler
23 should only have to include one file. This one. -- JF */
25 extern const pseudo_typeS md_pseudo_table[];
27 /* JF moved this here from as.h under the theory that nobody except MACHINE.c
28 and write.c care about it anyway. */
30 struct relax_type
32 /* Forward reach. Signed number. > 0. */
33 long rlx_forward;
34 /* Backward reach. Signed number. < 0. */
35 long rlx_backward;
37 /* Bytes length of this address. */
38 unsigned char rlx_length;
40 /* Next longer relax-state. 0 means there is no 'next' relax-state. */
41 relax_substateT rlx_more;
44 typedef struct relax_type relax_typeS;
46 extern const int md_reloc_size; /* Size of a relocation record */
48 char *md_atof PARAMS ((int what_statement_type, char *literalP, int *sizeP));
49 #ifndef md_estimate_size_before_relax
50 int md_estimate_size_before_relax PARAMS ((fragS * fragP, segT segment));
51 #endif
52 int md_parse_option PARAMS ((int c, char *arg));
53 void md_show_usage PARAMS ((FILE *));
54 long md_pcrel_from PARAMS ((fixS * fixP));
55 short tc_coff_fix2rtype PARAMS ((fixS * fixP));
56 void md_assemble PARAMS ((char *str));
57 void md_begin PARAMS ((void));
58 #ifndef md_create_long_jump
59 void md_create_long_jump PARAMS ((char *ptr, addressT from_addr,
60 addressT to_addr, fragS * frag,
61 symbolS * to_symbol));
62 #endif
63 #ifndef md_create_short_jump
64 void md_create_short_jump PARAMS ((char *ptr, addressT from_addr,
65 addressT to_addr, fragS * frag,
66 symbolS * to_symbol));
67 #endif
68 void md_number_to_chars PARAMS ((char *buf, valueT val, int n));
70 #ifndef md_operand
71 void md_operand PARAMS ((expressionS * expressionP));
72 #endif
74 #ifdef MD_APPLY_FIX3
75 int md_apply_fix3 PARAMS ((fixS * fixP, valueT *val, segT seg));
76 #endif
77 #ifdef BFD_ASSEMBLER
78 int md_apply_fix PARAMS ((fixS * fixP, valueT *val));
79 #ifndef md_convert_frag
80 void md_convert_frag PARAMS ((bfd * headers, segT sec, fragS * fragP));
81 #endif
82 #ifndef tc_headers_hook
83 void tc_headers_hook PARAMS ((segT *, fixS *));
84 #endif
85 #ifndef RELOC_EXPANSION_POSSIBLE
86 extern arelent *tc_gen_reloc PARAMS ((asection *, fixS *));
87 #else
88 extern arelent **tc_gen_reloc PARAMS ((asection *, fixS *));
89 #endif
90 #else /* not BFD_ASSEMBLER */
91 void md_apply_fix PARAMS ((fixS * fixP, long val));
92 #ifndef md_convert_frag
93 void md_convert_frag PARAMS ((object_headers * headers, segT, fragS * fragP));
94 #endif
96 #ifndef tc_crawl_symbol_chain
97 void tc_crawl_symbol_chain PARAMS ((object_headers * headers));
98 #endif /* tc_crawl_symbol_chain */
100 #ifndef tc_headers_hook
101 void tc_headers_hook PARAMS ((object_headers * headers));
102 #endif /* tc_headers_hook */
103 #endif /* BFD_ASSEMBLER */
105 #ifndef md_section_align
106 valueT md_section_align PARAMS ((segT seg, valueT size));
107 #endif
109 #ifndef md_undefined_symbol
110 symbolS *md_undefined_symbol PARAMS ((char *name));
111 #endif
113 /* end of tc.h */