1 /* tc.h - target cpu dependent
3 Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 2000, 2001, 2003,
5 Free Software Foundation, Inc.
7 This file is part of GAS, the GNU Assembler.
9 GAS is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
14 GAS is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with GAS; see the file COPYING. If not, write to
21 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
23 /* In theory (mine, at least!) the machine dependent part of the assembler
24 should only have to include one file. This one. -- JF */
26 extern const pseudo_typeS md_pseudo_table
[];
28 extern const int md_reloc_size
; /* Size of a relocation record. */
30 char * md_atof (int, char *, int *);
31 int md_parse_option (int, char *);
32 void md_show_usage (FILE *);
33 short tc_coff_fix2rtype (fixS
*);
34 void md_assemble (char *);
36 void md_number_to_chars (char *, valueT
, int);
37 void md_apply_fix3 (fixS
*, valueT
*, segT
);
39 #ifndef WORKING_DOT_WORD
40 extern int md_short_jump_size
;
41 extern int md_long_jump_size
;
45 /* The name of an external symbol which is
46 used to make weak PE symbol names unique. */
47 extern const char * an_external_name
;
50 #ifndef md_create_long_jump
51 void md_create_long_jump (char *, addressT
, addressT
, fragS
*, symbolS
*);
53 #ifndef md_create_short_jump
54 void md_create_short_jump (char *, addressT
, addressT
, fragS
*, symbolS
*);
57 long md_pcrel_from (fixS
*);
60 void md_operand (expressionS
*);
62 #ifndef md_estimate_size_before_relax
63 int md_estimate_size_before_relax (fragS
* fragP
, segT
);
65 #ifndef md_section_align
66 valueT
md_section_align (segT
, valueT
);
68 #ifndef md_undefined_symbol
69 symbolS
*md_undefined_symbol (char *);
74 #ifndef md_convert_frag
75 void md_convert_frag (bfd
*, segT
, fragS
*);
77 #ifndef tc_headers_hook
78 void tc_headers_hook (segT
*, fixS
*);
80 #ifndef RELOC_EXPANSION_POSSIBLE
81 extern arelent
*tc_gen_reloc (asection
*, fixS
*);
83 extern arelent
**tc_gen_reloc (asection
*, fixS
*);
86 #else /* not BFD_ASSEMBLER */
88 #ifndef md_convert_frag
89 void md_convert_frag (object_headers
*, segT
, fragS
*);
91 #ifndef tc_crawl_symbol_chain
92 void tc_crawl_symbol_chain (object_headers
*);
94 #ifndef tc_headers_hook
95 void tc_headers_hook (object_headers
*);
98 #endif /* BFD_ASSEMBLER */