source: branches/libc-0.6/src/binutils/gas/tc.h

Last change on this file was 610, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r609,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 3.5 KB
Line 
1/* tc.h - target cpu dependent
2
3 Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 2000
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
27/* JF moved this here from as.h under the theory that nobody except MACHINE.c
28 and write.c care about it anyway. */
29
30struct relax_type
31{
32 /* Forward reach. Signed number. > 0. */
33 long rlx_forward;
34 /* Backward reach. Signed number. < 0. */
35 long rlx_backward;
36
37 /* Bytes length of this address. */
38 unsigned char rlx_length;
39
40 /* Next longer relax-state. 0 means there is no 'next' relax-state. */
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
48char *md_atof PARAMS ((int what_statement_type, char *literalP, int *sizeP));
49#ifndef md_estimate_size_before_relax
50int md_estimate_size_before_relax PARAMS ((fragS * fragP, segT segment));
51#endif
52int md_parse_option PARAMS ((int c, char *arg));
53void md_show_usage PARAMS ((FILE *));
54long md_pcrel_from PARAMS ((fixS * fixP));
55short tc_coff_fix2rtype PARAMS ((fixS * fixP));
56void md_assemble PARAMS ((char *str));
57void md_begin PARAMS ((void));
58#ifndef md_create_long_jump
59void md_create_long_jump PARAMS ((char *ptr, addressT from_addr,
60 addressT to_addr, fragS * frag,
61 symbolS * to_symbol));
62#endif
63#ifndef md_create_short_jump
64void md_create_short_jump PARAMS ((char *ptr, addressT from_addr,
65 addressT to_addr, fragS * frag,
66 symbolS * to_symbol));
67#endif
68void md_number_to_chars PARAMS ((char *buf, valueT val, int n));
69
70#ifndef md_operand
71void md_operand PARAMS ((expressionS * expressionP));
72#endif
73
74void md_apply_fix3 PARAMS ((fixS *, valueT *, segT));
75
76#ifdef BFD_ASSEMBLER
77#ifndef md_convert_frag
78void md_convert_frag PARAMS ((bfd * headers, segT sec, fragS * fragP));
79#endif
80#ifndef tc_headers_hook
81void tc_headers_hook PARAMS ((segT *, fixS *));
82#endif
83#ifndef RELOC_EXPANSION_POSSIBLE
84extern arelent *tc_gen_reloc PARAMS ((asection *, fixS *));
85#else
86extern arelent **tc_gen_reloc PARAMS ((asection *, fixS *));
87#endif
88#else /* not BFD_ASSEMBLER */
89#ifndef md_convert_frag
90void md_convert_frag PARAMS ((object_headers * headers, segT, fragS * fragP));
91#endif
92
93#ifndef tc_crawl_symbol_chain
94void tc_crawl_symbol_chain PARAMS ((object_headers * headers));
95#endif /* tc_crawl_symbol_chain */
96
97#ifndef tc_headers_hook
98void tc_headers_hook PARAMS ((object_headers * headers));
99#endif /* tc_headers_hook */
100#endif /* BFD_ASSEMBLER */
101
102#ifndef md_section_align
103valueT md_section_align PARAMS ((segT seg, valueT size));
104#endif
105
106#ifndef md_undefined_symbol
107symbolS *md_undefined_symbol PARAMS ((char *name));
108#endif
109
110/* end of tc.h */
Note: See TracBrowser for help on using the repository browser.