Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | /* tc.h - target cpu dependent |
2 | ||
977cdf5a | 3 | Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 2000, 2001, 2003, 2004 |
f7e42eb4 | 4 | Free Software Foundation, Inc. |
252b5132 RH |
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 | |
20 | the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | |
21 | ||
22 | /* In theory (mine, at least!) the machine dependent part of the assembler | |
23 | should only have to include one file. This one. -- JF */ | |
24 | ||
25 | extern const pseudo_typeS md_pseudo_table[]; | |
26 | ||
27 | /* JF moved this here from as.h under the theory that nobody except MACHINE.c | |
a01b9fa4 | 28 | and write.c care about it anyway. */ |
252b5132 RH |
29 | |
30 | struct relax_type | |
31 | { | |
a01b9fa4 | 32 | /* Forward reach. Signed number. > 0. */ |
252b5132 | 33 | long rlx_forward; |
a01b9fa4 | 34 | /* Backward reach. Signed number. < 0. */ |
252b5132 RH |
35 | long rlx_backward; |
36 | ||
a01b9fa4 | 37 | /* Bytes length of this address. */ |
252b5132 RH |
38 | unsigned char rlx_length; |
39 | ||
a01b9fa4 | 40 | /* Next longer relax-state. 0 means there is no 'next' relax-state. */ |
252b5132 RH |
41 | relax_substateT rlx_more; |
42 | }; | |
43 | ||
44 | typedef struct relax_type relax_typeS; | |
45 | ||
329e276d NC |
46 | extern const int md_reloc_size; /* Size of a relocation record. */ |
47 | ||
48 | char * md_atof (int, char *, int *); | |
49 | int md_parse_option (int, char *); | |
50 | void md_show_usage (FILE *); | |
51 | short tc_coff_fix2rtype (fixS *); | |
52 | void md_assemble (char *); | |
53 | void md_begin (void); | |
54 | void md_number_to_chars (char *, valueT, int); | |
55 | void md_apply_fix3 (fixS *, valueT *, segT); | |
56 | ||
2b4f075a HPN |
57 | #ifndef WORKING_DOT_WORD |
58 | extern int md_short_jump_size; | |
59 | extern int md_long_jump_size; | |
60 | #endif | |
252b5132 | 61 | |
977cdf5a NC |
62 | #ifdef USE_UNIQUE |
63 | /* The name of an external symbol which is | |
64 | used to make weak PE symbol names unique. */ | |
65 | extern const char * an_external_name; | |
66 | #endif | |
67 | ||
252b5132 | 68 | #ifndef md_create_long_jump |
329e276d | 69 | void md_create_long_jump (char *, addressT, addressT, fragS *, symbolS *); |
252b5132 RH |
70 | #endif |
71 | #ifndef md_create_short_jump | |
329e276d NC |
72 | void md_create_short_jump (char *, addressT, addressT, fragS *, symbolS *); |
73 | #endif | |
74 | #ifndef md_pcrel_from | |
75 | long md_pcrel_from (fixS *); | |
252b5132 | 76 | #endif |
252b5132 | 77 | #ifndef md_operand |
329e276d NC |
78 | void md_operand (expressionS *); |
79 | #endif | |
80 | #ifndef md_estimate_size_before_relax | |
81 | int md_estimate_size_before_relax (fragS * fragP, segT); | |
82 | #endif | |
83 | #ifndef md_section_align | |
84 | valueT md_section_align (segT, valueT); | |
85 | #endif | |
86 | #ifndef md_undefined_symbol | |
87 | symbolS *md_undefined_symbol (char *); | |
252b5132 | 88 | #endif |
94f592af | 89 | |
252b5132 | 90 | #ifdef BFD_ASSEMBLER |
329e276d | 91 | |
252b5132 | 92 | #ifndef md_convert_frag |
329e276d | 93 | void md_convert_frag (bfd *, segT, fragS *); |
252b5132 RH |
94 | #endif |
95 | #ifndef tc_headers_hook | |
329e276d | 96 | void tc_headers_hook (segT *, fixS *); |
252b5132 RH |
97 | #endif |
98 | #ifndef RELOC_EXPANSION_POSSIBLE | |
24361518 | 99 | extern arelent *tc_gen_reloc (asection *, fixS *); |
252b5132 | 100 | #else |
24361518 | 101 | extern arelent **tc_gen_reloc (asection *, fixS *); |
252b5132 | 102 | #endif |
329e276d | 103 | |
252b5132 | 104 | #else /* not BFD_ASSEMBLER */ |
329e276d | 105 | |
252b5132 | 106 | #ifndef md_convert_frag |
329e276d | 107 | void md_convert_frag (object_headers *, segT, fragS *); |
252b5132 | 108 | #endif |
252b5132 | 109 | #ifndef tc_crawl_symbol_chain |
329e276d | 110 | void tc_crawl_symbol_chain (object_headers *); |
252b5132 | 111 | #endif |
329e276d NC |
112 | #ifndef tc_headers_hook |
113 | void tc_headers_hook (object_headers *); | |
252b5132 RH |
114 | #endif |
115 | ||
329e276d | 116 | #endif /* BFD_ASSEMBLER */ |