1 /* tc.h - target cpu dependent
3 Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 2000, 2001, 2003
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)
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 extern const int md_reloc_size; /* Size of a relocation record */
29 char *md_atof (int what_statement_type, char *literalP, int *sizeP);
30 #ifndef md_estimate_size_before_relax
31 int md_estimate_size_before_relax (fragS * fragP, segT segment);
33 int md_parse_option (int c, char *arg);
34 void md_show_usage (FILE *);
36 long md_pcrel_from (fixS * fixP);
38 short tc_coff_fix2rtype (fixS * fixP);
39 void md_assemble (char *str);
41 #ifndef md_create_long_jump
42 void md_create_long_jump (char *ptr, addressT from_addr,
43 addressT to_addr, fragS * frag,
46 #ifndef md_create_short_jump
47 void md_create_short_jump (char *ptr, addressT from_addr,
48 addressT to_addr, fragS * frag,
51 void md_number_to_chars (char *buf, valueT val, int n);
54 void md_operand (expressionS * expressionP);
57 void md_apply_fix3 (fixS *, valueT *, segT);
60 #ifndef md_convert_frag
61 void md_convert_frag (bfd * headers, segT sec, fragS * fragP);
63 #ifndef tc_headers_hook
64 void tc_headers_hook (segT *, fixS *);
66 #ifndef RELOC_EXPANSION_POSSIBLE
67 extern arelent *tc_gen_reloc (asection *, fixS *);
69 extern arelent **tc_gen_reloc (asection *, fixS *);
71 #else /* not BFD_ASSEMBLER */
72 #ifndef md_convert_frag
73 void md_convert_frag (object_headers * headers, segT, fragS * fragP);
76 #ifndef tc_crawl_symbol_chain
77 void tc_crawl_symbol_chain (object_headers * headers);
78 #endif /* tc_crawl_symbol_chain */
80 #ifndef tc_headers_hook
81 void tc_headers_hook (object_headers * headers);
82 #endif /* tc_headers_hook */
83 #endif /* BFD_ASSEMBLER */
85 #ifndef md_section_align
86 valueT md_section_align (segT seg, valueT size);
89 #ifndef md_undefined_symbol
90 symbolS *md_undefined_symbol (char *name);