tc.h revision 168433
1/* tc.h - target cpu dependent
2
3   Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 2000, 2001, 2003
4   Free Software Foundation, Inc.
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
25extern const pseudo_typeS md_pseudo_table[];
26
27extern const int md_reloc_size;	/* Size of a relocation record */
28
29char *md_atof (int what_statement_type, char *literalP, int *sizeP);
30#ifndef md_estimate_size_before_relax
31int md_estimate_size_before_relax (fragS * fragP, segT segment);
32#endif
33int md_parse_option (int c, char *arg);
34void md_show_usage (FILE *);
35#ifndef md_pcrel_from
36long md_pcrel_from (fixS * fixP);
37#endif
38short tc_coff_fix2rtype (fixS * fixP);
39void md_assemble (char *str);
40void md_begin (void);
41#ifndef md_create_long_jump
42void md_create_long_jump (char *ptr, addressT from_addr,
43			  addressT to_addr, fragS * frag,
44			  symbolS * to_symbol);
45#endif
46#ifndef md_create_short_jump
47void md_create_short_jump (char *ptr, addressT from_addr,
48			   addressT to_addr, fragS * frag,
49			   symbolS * to_symbol);
50#endif
51void md_number_to_chars (char *buf, valueT val, int n);
52
53#ifndef md_operand
54void md_operand (expressionS * expressionP);
55#endif
56
57void md_apply_fix3 (fixS *, valueT *, segT);
58
59#ifdef BFD_ASSEMBLER
60#ifndef md_convert_frag
61void md_convert_frag (bfd * headers, segT sec, fragS * fragP);
62#endif
63#ifndef tc_headers_hook
64void tc_headers_hook (segT *, fixS *);
65#endif
66#ifndef RELOC_EXPANSION_POSSIBLE
67extern arelent *tc_gen_reloc (asection *, fixS *);
68#else
69extern arelent **tc_gen_reloc (asection *, fixS *);
70#endif
71#else /* not BFD_ASSEMBLER */
72#ifndef md_convert_frag
73void md_convert_frag (object_headers * headers, segT, fragS * fragP);
74#endif
75
76#ifndef tc_crawl_symbol_chain
77void tc_crawl_symbol_chain (object_headers * headers);
78#endif /* tc_crawl_symbol_chain */
79
80#ifndef tc_headers_hook
81void tc_headers_hook (object_headers * headers);
82#endif /* tc_headers_hook */
83#endif /* BFD_ASSEMBLER */
84
85#ifndef md_section_align
86valueT md_section_align (segT seg, valueT size);
87#endif
88
89#ifndef md_undefined_symbol
90symbolS *md_undefined_symbol (char *name);
91#endif
92
93/* end of tc.h */
94