]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/tc.h
2004-08-17 Michael Chastain <mec.gnu@mindspring.com>
[thirdparty/binutils-gdb.git] / gas / tc.h
CommitLineData
252b5132
RH
1/* tc.h - target cpu dependent
2
147f6d69 3 Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 2000, 2001, 2003
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
25extern 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
30struct 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
44typedef struct relax_type relax_typeS;
45
46extern const int md_reloc_size; /* Size of a relocation record */
47
24361518 48char *md_atof (int what_statement_type, char *literalP, int *sizeP);
252b5132 49#ifndef md_estimate_size_before_relax
24361518 50int md_estimate_size_before_relax (fragS * fragP, segT segment);
252b5132 51#endif
24361518
KH
52int md_parse_option (int c, char *arg);
53void md_show_usage (FILE *);
147f6d69 54#ifndef md_pcrel_from
24361518 55long md_pcrel_from (fixS * fixP);
147f6d69 56#endif
24361518
KH
57short tc_coff_fix2rtype (fixS * fixP);
58void md_assemble (char *str);
59void md_begin (void);
252b5132 60#ifndef md_create_long_jump
24361518
KH
61void md_create_long_jump (char *ptr, addressT from_addr,
62 addressT to_addr, fragS * frag,
63 symbolS * to_symbol);
252b5132
RH
64#endif
65#ifndef md_create_short_jump
24361518
KH
66void md_create_short_jump (char *ptr, addressT from_addr,
67 addressT to_addr, fragS * frag,
68 symbolS * to_symbol);
252b5132 69#endif
24361518 70void md_number_to_chars (char *buf, valueT val, int n);
252b5132
RH
71
72#ifndef md_operand
24361518 73void md_operand (expressionS * expressionP);
252b5132
RH
74#endif
75
24361518 76void md_apply_fix3 (fixS *, valueT *, segT);
94f592af 77
252b5132 78#ifdef BFD_ASSEMBLER
252b5132 79#ifndef md_convert_frag
24361518 80void md_convert_frag (bfd * headers, segT sec, fragS * fragP);
252b5132
RH
81#endif
82#ifndef tc_headers_hook
24361518 83void tc_headers_hook (segT *, fixS *);
252b5132
RH
84#endif
85#ifndef RELOC_EXPANSION_POSSIBLE
24361518 86extern arelent *tc_gen_reloc (asection *, fixS *);
252b5132 87#else
24361518 88extern arelent **tc_gen_reloc (asection *, fixS *);
252b5132
RH
89#endif
90#else /* not BFD_ASSEMBLER */
252b5132 91#ifndef md_convert_frag
24361518 92void md_convert_frag (object_headers * headers, segT, fragS * fragP);
252b5132
RH
93#endif
94
95#ifndef tc_crawl_symbol_chain
24361518 96void tc_crawl_symbol_chain (object_headers * headers);
252b5132
RH
97#endif /* tc_crawl_symbol_chain */
98
99#ifndef tc_headers_hook
24361518 100void tc_headers_hook (object_headers * headers);
252b5132
RH
101#endif /* tc_headers_hook */
102#endif /* BFD_ASSEMBLER */
103
104#ifndef md_section_align
24361518 105valueT md_section_align (segT seg, valueT size);
252b5132
RH
106#endif
107
108#ifndef md_undefined_symbol
24361518 109symbolS *md_undefined_symbol (char *name);
252b5132
RH
110#endif
111
112/* end of tc.h */